# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 VALA_MIN_API_VERSION=0.24 inherit gnome2-utils vala multilib cmake-utils bzr DESCRIPTION="A development library for elementary development" HOMEPAGE="https://launchpad.net/granite" EBZR_REPO_URI="lp:granite" LICENSE="LGPL-3" SLOT="0" KEYWORDS="" IUSE="demo nls" RDEPEND=" dev-libs/glib:2 dev-libs/libgee:0.8[introspection] >=x11-libs/gtk+-3.11.6:3[introspection]" DEPEND="${RDEPEND} $(vala_depend) virtual/pkgconfig nls? ( sys-devel/gettext )" DOCS=( AUTHORS COPYING ) src_prepare() { eapply_user # Disable building of the demo application (if needed) use demo || sed -i '/add_subdirectory (demo)/d' CMakeLists.txt # Disable generation of the translations (if needed) use nls || sed -i '/add_subdirectory (po)/d' CMakeLists.txt cmake-utils_src_prepare vala_src_prepare } src_configure() { local mycmakeargs=( -DLIB_INSTALL_DIR=$(get_libdir) -DVALA_EXECUTABLE=${VALAC} ) cmake-utils_src_configure } pkg_preinst() { gnome2_icon_savelist } pkg_postinst() { gnome2_icon_cache_update } pkg_postrm() { gnome2_icon_cache_update }