1 |
commit: 4852590d26217754284fdacfef8fa33d1507569d |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 7 08:41:56 2016 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 7 08:41:56 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4852590d |
7 |
|
8 |
dev-libs/libappindicator: Fix Vala classes not being able to inherit from Indicator and fix vapigen detection (#580988 by jospezial) |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
...indicator-12.10.0-conditional-py-bindings.patch | 8 +- |
13 |
.../libappindicator-12.10.0-vala-inherit.patch | 14 ++++ |
14 |
.../libappindicator-12.10.0-r201.ebuild | 86 ++++++++++++++++++++++ |
15 |
.../libappindicator-12.10.0-r301.ebuild | 71 ++++++++++++++++++ |
16 |
4 files changed, 175 insertions(+), 4 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch b/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch |
19 |
index 6a5e15f..c916d9b 100644 |
20 |
--- a/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch |
21 |
+++ b/dev-libs/libappindicator/files/libappindicator-12.10.0-conditional-py-bindings.patch |
22 |
@@ -1,5 +1,5 @@ |
23 |
---- bindings/Makefile.am 2015-07-10 10:04:18.091199191 +0200 |
24 |
-+++ bindings/Makefile.am 2015-07-10 10:19:47.047974439 +0200 |
25 |
+--- a/bindings/Makefile.am 2015-07-10 10:04:18.091199191 +0200 |
26 |
++++ b/bindings/Makefile.am 2015-07-10 10:19:47.047974439 +0200 |
27 |
@@ -3,8 +3,10 @@ |
28 |
vala |
29 |
else |
30 |
@@ -12,8 +12,8 @@ |
31 |
endif |
32 |
|
33 |
if HAS_MONO |
34 |
---- configure.ac 2015-07-16 13:28:41.007502838 +0200 |
35 |
-+++ configure.ac_new 2015-07-16 13:53:18.118602877 +0200 |
36 |
+--- a/configure.ac 2015-07-16 13:28:41.007502838 +0200 |
37 |
++++ b/configure.ac_new 2015-07-16 13:53:18.118602877 +0200 |
38 |
@@ -188,25 +188,37 @@ |
39 |
PYGTK_REQUIRED=2.14.0 |
40 |
PYGOBJECT_REQUIRED=0.22 |
41 |
|
42 |
diff --git a/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch b/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch |
43 |
new file mode 100644 |
44 |
index 0000000..e71cb69 |
45 |
--- /dev/null |
46 |
+++ b/dev-libs/libappindicator/files/libappindicator-12.10.0-vala-inherit.patch |
47 |
@@ -0,0 +1,14 @@ |
48 |
+# http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 |
49 |
+=== modified file 'bindings/vala/appindicator-0.1-custom.vala' |
50 |
+--- a/bindings/vala/appindicator-0.1-custom.vala 2011-09-23 15:46:27 +0000 |
51 |
++++ b/bindings/vala/appindicator-0.1-custom.vala 2012-10-10 23:33:35 +0000 |
52 |
+@@ -23,7 +23,7 @@ |
53 |
+ */ |
54 |
+ |
55 |
+ namespace AppIndicator { |
56 |
+- [CCode (type_check_function = "IS_APP_INDICATOR")] |
57 |
++ [CCode (type_check_function = "IS_APP_INDICATOR", type_id = "app_indicator_get_type ()")] |
58 |
+ public class Indicator : GLib.Object { |
59 |
+ } |
60 |
+ } |
61 |
+ |
62 |
|
63 |
diff --git a/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild b/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild |
64 |
new file mode 100644 |
65 |
index 0000000..db2f2d7 |
66 |
--- /dev/null |
67 |
+++ b/dev-libs/libappindicator/libappindicator-12.10.0-r201.ebuild |
68 |
@@ -0,0 +1,86 @@ |
69 |
+# Copyright 1999-2016 Gentoo Foundation |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+# $Id$ |
72 |
+ |
73 |
+EAPI=6 |
74 |
+VALA_USE_DEPEND="vapigen" |
75 |
+ |
76 |
+PYTHON_COMPAT=( python2_7 ) |
77 |
+ |
78 |
+inherit autotools eutils multilib-minimal python-single-r1 vala |
79 |
+ |
80 |
+DESCRIPTION="A library to allow applications to export a menu into the Unity Menu bar" |
81 |
+HOMEPAGE="https://launchpad.net/libappindicator" |
82 |
+SRC_URI="https://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz" |
83 |
+ |
84 |
+LICENSE="LGPL-2.1 LGPL-3" |
85 |
+SLOT="2" |
86 |
+KEYWORDS="~amd64 ~arm ~x86" |
87 |
+ |
88 |
+IUSE="+introspection python" |
89 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
90 |
+ |
91 |
+RDEPEND=" |
92 |
+ >=dev-libs/dbus-glib-0.98[${MULTILIB_USEDEP}] |
93 |
+ >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] |
94 |
+ >=dev-libs/libdbusmenu-0.6.2[gtk,${MULTILIB_USEDEP}] |
95 |
+ >=dev-libs/libindicator-12.10.0:0[${MULTILIB_USEDEP}] |
96 |
+ x11-libs/gtk+:2[${MULTILIB_USEDEP},introspection?] |
97 |
+ introspection? ( >=dev-libs/gobject-introspection-1:= ) |
98 |
+ python? ( |
99 |
+ ${PYTHON_DEPS} |
100 |
+ dev-python/pygtk[${PYTHON_USEDEP}] |
101 |
+ ) |
102 |
+" |
103 |
+DEPEND="${RDEPEND} |
104 |
+ virtual/pkgconfig[${MULTILIB_USEDEP}] |
105 |
+ introspection? ( $(vala_depend) ) |
106 |
+" |
107 |
+ |
108 |
+PATCHES=( |
109 |
+ "${FILESDIR}"/${P}-conditional-py-bindings.patch |
110 |
+ # http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 |
111 |
+ "${FILESDIR}"/${P}-vala-inherit.patch |
112 |
+) |
113 |
+ |
114 |
+pkg_setup() { |
115 |
+ use python && python-single-r1_pkg_setup |
116 |
+} |
117 |
+ |
118 |
+src_prepare() { |
119 |
+ default |
120 |
+ |
121 |
+ # Don't use -Werror |
122 |
+ sed -i -e 's/ -Werror//' {src,tests}/Makefile.{am,in} || die |
123 |
+ |
124 |
+ eautoreconf |
125 |
+ |
126 |
+ # Disable MONO for now because of https://bugs.gentoo.org/382491 |
127 |
+ sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die |
128 |
+} |
129 |
+ |
130 |
+multilib_src_configure() { |
131 |
+ if multilib_is_native_abi; then |
132 |
+ local -x VALAC VALA_API_GEN VAPIGEN_VAPIDIR PKG_CONFIG_PATH |
133 |
+ use introspection && vala_src_prepare && export VALA_API_GEN="${VAPIGEN}" |
134 |
+ fi |
135 |
+ |
136 |
+ ECONF_SOURCE=${S} \ |
137 |
+ econf \ |
138 |
+ --disable-static \ |
139 |
+ --with-gtk=2 \ |
140 |
+ $(multilib_native_use_enable introspection) \ |
141 |
+ $(multilib_native_use_enable python) |
142 |
+} |
143 |
+ |
144 |
+multilib_src_install() { |
145 |
+ emake -j1 DESTDIR="${D}" install |
146 |
+} |
147 |
+ |
148 |
+multilib_src_install_all() { |
149 |
+ einstalldocs |
150 |
+ prune_libtool_files --modules |
151 |
+ |
152 |
+ # installed by slot 3 as well |
153 |
+ rm -r "${D}"usr/share/gtk-doc || die |
154 |
+} |
155 |
|
156 |
diff --git a/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild b/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild |
157 |
new file mode 100644 |
158 |
index 0000000..98f2c3d |
159 |
--- /dev/null |
160 |
+++ b/dev-libs/libappindicator/libappindicator-12.10.0-r301.ebuild |
161 |
@@ -0,0 +1,71 @@ |
162 |
+# Copyright 1999-2015 Gentoo Foundation |
163 |
+# Distributed under the terms of the GNU General Public License v2 |
164 |
+# $Id$ |
165 |
+ |
166 |
+EAPI=6 |
167 |
+VALA_USE_DEPEND="vapigen" |
168 |
+ |
169 |
+inherit autotools eutils multilib-minimal vala |
170 |
+ |
171 |
+DESCRIPTION="A library to allow applications to export a menu into the Unity Menu bar" |
172 |
+HOMEPAGE="https://launchpad.net/libappindicator" |
173 |
+SRC_URI="https://launchpad.net/${PN}/${PV%.*}/${PV}/+download/${P}.tar.gz" |
174 |
+ |
175 |
+LICENSE="LGPL-2.1 LGPL-3" |
176 |
+SLOT="3" |
177 |
+KEYWORDS="~amd64 ~arm ~x86" |
178 |
+IUSE="+introspection" |
179 |
+ |
180 |
+RDEPEND=" |
181 |
+ >=dev-libs/dbus-glib-0.98[${MULTILIB_USEDEP}] |
182 |
+ >=dev-libs/glib-2.26:2[${MULTILIB_USEDEP}] |
183 |
+ >=dev-libs/libdbusmenu-0.6.2[gtk3,${MULTILIB_USEDEP}] |
184 |
+ >=dev-libs/libindicator-12.10.0:3[${MULTILIB_USEDEP}] |
185 |
+ >=x11-libs/gtk+-3.2:3[${MULTILIB_USEDEP},introspection?] |
186 |
+ introspection? ( >=dev-libs/gobject-introspection-1:= ) |
187 |
+" |
188 |
+DEPEND="${RDEPEND} |
189 |
+ introspection? ( $(vala_depend) ) |
190 |
+ dev-util/gtk-doc-am |
191 |
+ virtual/pkgconfig[${MULTILIB_USEDEP}] |
192 |
+" |
193 |
+ |
194 |
+PATCHES=( |
195 |
+ "${FILESDIR}"/${P}-conditional-py-bindings.patch |
196 |
+ # http://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk.12.10/revision/244 |
197 |
+ "${FILESDIR}"/${P}-vala-inherit.patch |
198 |
+) |
199 |
+ |
200 |
+src_prepare() { |
201 |
+ default |
202 |
+ |
203 |
+ # Don't use -Werror |
204 |
+ sed -i -e 's/ -Werror//' {src,tests}/Makefile.{am,in} || die |
205 |
+ |
206 |
+ eautoreconf |
207 |
+ |
208 |
+ # Disable MONO for now because of https://bugs.gentoo.org/382491 |
209 |
+ sed -i -e '/^MONO_REQUIRED_VERSION/s:=.*:=9999:' configure || die |
210 |
+} |
211 |
+ |
212 |
+multilib_src_configure() { |
213 |
+ if multilib_is_native_abi; then |
214 |
+ local -x VALAC VALA_API_GEN VAPIGEN_VAPIDIR PKG_CONFIG_PATH |
215 |
+ use introspection && vala_src_prepare && export VALA_API_GEN="${VAPIGEN}" |
216 |
+ fi |
217 |
+ |
218 |
+ ECONF_SOURCE=${S} \ |
219 |
+ econf \ |
220 |
+ --disable-static \ |
221 |
+ --with-gtk=3 \ |
222 |
+ $(multilib_native_use_enable introspection) |
223 |
+} |
224 |
+ |
225 |
+multilib_src_install() { |
226 |
+ emake -j1 DESTDIR="${D}" install |
227 |
+} |
228 |
+ |
229 |
+multilib_src_install_all() { |
230 |
+ einstalldocs |
231 |
+ prune_libtool_files |
232 |
+} |