1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 VALA_MIN_API_VERSION=0.32
8 inherit gnome2-utils vala cmake-utils versionator
10 DESCRIPTION="Elementary OS library that extends Gtk+"
11 HOMEPAGE="https://github.com/elementary/granite"
12 SRC_URI="https://github.com/elementary/${PN}/archive/$(get_version_component_range 1-2).tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64 ~arm x86"
21 dev-libs/libgee:0.8[introspection]
22 >=x11-libs/gtk+-3.14:3[introspection]"
26 nls? ( sys-devel/gettext )"
28 S="${WORKDIR}"/"${PN}"-"$(get_version_component_range 1-2)"
32 # Disable building of the demo application (if needed)
33 use demo || cmake_comment_add_subdirectory demo
35 # Disable generation of the translations (if needed)
36 use nls || cmake_comment_add_subdirectory po
38 cmake-utils_src_prepare
44 -DVALA_EXECUTABLE=${VALAC}
47 cmake-utils_src_configure
55 gnome2_icon_cache_update
59 gnome2_icon_cache_update