forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dee-1.2.7-r1.ebuild
85 lines (69 loc) · 1.75 KB
/
dee-1.2.7-r1.ebuild
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
inherit gnome2 python-r1 vala
DESCRIPTION="Provide objects allowing to create Model-View-Controller type programs across DBus"
HOMEPAGE="https://launchpad.net/dee/"
SRC_URI="https://launchpad.net/dee/1.0/${PV}/+download/${P}.tar.gz"
SLOT="0/4"
LICENSE="GPL-3"
KEYWORDS="~alpha amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc x86"
IUSE="debug examples +icu introspection static-libs test"
REQUIRED_USE="introspection? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="
dev-libs/glib:2
icu? ( dev-libs/icu:= )
introspection? (
${PYTHON_DEPS}
>=dev-libs/gobject-introspection-0.10.2:=
)
"
DEPEND="${RDEPEND}
$(vala_depend)
>=dev-util/gtk-doc-am-1.8
virtual/pkgconfig
test? (
>=dev-libs/gtx-0.2.2
dev-util/dbus-test-runner
)
"
src_prepare() {
# Fix build with gcc-6, bug #594112
eapply "${FILESDIR}"/${PN}-1.2.7-gcc-6-build.patch
sed \
-e 's:VALA_API_GEN:VAPIGEN:g' \
-i vapi/Makefile.{am,in} || die
sed \
-e '/SUBDIRS/ s:bindings::g' \
-i Makefile.{am,in} || die
vala_src_prepare
gnome2_src_prepare
sed \
-e '/GCC_FLAGS/ s:-g::' \
-e 's:VALA_API_GEN:VAPIGEN:g' \
-i configure || die
}
src_configure() {
gnome2_src_configure \
$(use_enable debug trace-log) \
$(use_enable icu) \
$(use_enable introspection) \
$(use_enable static-libs static) \
$(use_enable test tests)
}
src_install() {
gnome2_src_install
if use examples ; then
insinto /usr/share/doc/${PN}/
doins -r examples
fi
if use introspection ; then
install_gi_override() {
python_moduleinto "$(python_get_sitedir)/gi/overrides"
python_domodule "${S}"/bindings/python/Dee.py
}
python_foreach_impl install_gi_override
fi
}