blob: abb46af52627aa19bc26fa0c4c2941229c051840 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
VALA_MIN_API_VERSION=0.32
inherit gnome2-utils vala cmake-utils versionator
DESCRIPTION="Elementary OS library that extends Gtk+"
HOMEPAGE="https://github.com/elementary/granite"
SRC_URI="https://github.com/elementary/${PN}/archive/$(get_version_component_range 1-2).tar.gz -> ${P}.tar.gz"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE="demo nls test"
RDEPEND="
dev-libs/glib:2
dev-libs/libgee:0.8[introspection]
>=x11-libs/gtk+-3.14:3[introspection]"
DEPEND="${RDEPEND}
$(vala_depend)
virtual/pkgconfig
nls? ( sys-devel/gettext )"
S="${WORKDIR}"/"${PN}"-"$(get_version_component_range 1-2)"
src_prepare() {
# Disable building of the demo application (if needed)
use demo || cmake_comment_add_subdirectory demo
# Disable generation of the translations (if needed)
use nls || cmake_comment_add_subdirectory po
cmake-utils_src_prepare
vala_src_prepare
}
src_configure() {
local mycmakeargs=(
-DVALA_EXECUTABLE=${VALAC}
)
cmake-utils_src_configure
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|