Find file
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (55 sloc) 1.21 KB
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
VALA_MIN_API_VERSION=0.22
inherit gnome2-utils vala cmake-utils bzr
DESCRIPTION="A lightweight and stylish app launcher for Pantheon and other DEs"
HOMEPAGE="http://launchpad.net/slingshot"
EBZR_REPO_URI="lp:slingshot"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="nls"
RDEPEND="
dev-libs/glib:2
dev-libs/json-glib
dev-libs/libgee:0.8
gnome-base/gnome-menus:3
net-libs/libsoup:2.4
>=x11-libs/granite-0.3
x11-libs/gtk+:3
gnome-extra/zeitgeist
>=pantheon-base/switchboard-2"
DEPEND="${RDEPEND}
$(vala_depend)
virtual/pkgconfig
nls? ( sys-devel/gettext )"
DOCS=( AUTHORS COPYING )
src_prepare() {
epatch_user
use nls || sed -i '/add_subdirectory (po)/d' CMakeLists.txt
cmake-utils_src_prepare
vala_src_prepare
}
src_configure() {
local mycmakeargs=(
-DGSETTINGS_COMPILE=OFF
-DICONCACHE_UPDATE=OFF
-DUSE_UNITY=OFF
-DVALA_EXECUTABLE="${VALAC}"
)
cmake-utils_src_configure
}
pkg_preinst() {
gnome2_icon_savelist
gnome2_schemas_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
gnome2_icon_cache_update
gnome2_schemas_update
}