1 |
commit: 6a7db316653a72172956cf36547b35e39c256c9a |
2 |
Author: Dennis Schridde <devurandom <AT> gmx <DOT> net> |
3 |
AuthorDate: Sat Feb 5 16:13:47 2011 +0000 |
4 |
Commit: Dennis Schridde <devurandom <AT> gmx <DOT> net> |
5 |
CommitDate: Sat Feb 5 17:00:12 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=6a7db316 |
7 |
|
8 |
[dev-libs/libdbusmenu] Optional Vala, fix parallel-build of introspection, revbump |
9 |
|
10 |
Bug: 353308 |
11 |
|
12 |
(Portage version: 2.2.0_alpha20/git/Linux x86_64, signed Manifest commit with key 50ED256E) |
13 |
|
14 |
--- |
15 |
.../libdbusmenu-0.3.16-fix-introspection.patch | 11 ++++ |
16 |
.../files/libdbusmenu-0.3.16-optional-vala.patch | 52 ++++++++++++++++++++ |
17 |
.../libdbusmenu-0.3.94-fix-introspection.patch | 11 ++++ |
18 |
...-0.3.16.ebuild => libdbusmenu-0.3.16-r1.ebuild} | 19 ++++++- |
19 |
...-0.3.94.ebuild => libdbusmenu-0.3.94-r1.ebuild} | 15 +++++- |
20 |
dev-libs/libdbusmenu/metadata.xml | 1 + |
21 |
6 files changed, 105 insertions(+), 4 deletions(-) |
22 |
|
23 |
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-fix-introspection.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-fix-introspection.patch |
24 |
new file mode 100644 |
25 |
index 0000000..5977795 |
26 |
--- /dev/null |
27 |
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-fix-introspection.patch |
28 |
@@ -0,0 +1,11 @@ |
29 |
+--- ./libdbusmenu-glib/Makefile.am.orig 2011-02-05 16:38:38.713641727 +0100 |
30 |
++++ ./libdbusmenu-glib/Makefile.am 2011-02-05 16:38:44.917448353 +0100 |
31 |
+@@ -123,7 +123,7 @@ |
32 |
+ |
33 |
+ introspection_sources = $(libdbusmenu_glibinclude_HEADERS) |
34 |
+ |
35 |
+-Dbusmenu_Glib-0.2.gir: libdbusmenu-glib.la |
36 |
++Dbusmenu-Glib-0.2.gir: libdbusmenu-glib.la |
37 |
+ Dbusmenu_Glib_0_2_gir_INCLUDES = \ |
38 |
+ GObject-2.0 |
39 |
+ Dbusmenu_Glib_0_2_gir_CFLAGS = $(DBUSMENUGLIB_CFLAGS) |
40 |
|
41 |
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-optional-vala.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-optional-vala.patch |
42 |
new file mode 100644 |
43 |
index 0000000..9aceb88 |
44 |
--- /dev/null |
45 |
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.16-optional-vala.patch |
46 |
@@ -0,0 +1,52 @@ |
47 |
+--- configure.ac.orig 2011-02-05 15:01:31.212827464 +0100 |
48 |
++++ configure.ac 2011-02-05 15:13:08.310031260 +0100 |
49 |
+@@ -143,7 +143,17 @@ |
50 |
+ # Vala API Generation |
51 |
+ ########################### |
52 |
+ |
53 |
++AC_ARG_ENABLE([vala], |
54 |
++ AC_HELP_STRING([--disable-vala], [Disable vala]), |
55 |
++ [enable_vala=$enableval], enable_vala=auto) |
56 |
++AM_CONDITIONAL([WANT_VALA], [test "x$enable_vala" != "xno"]) |
57 |
++ |
58 |
++if test "x$enable_vala" != "xno" ; then |
59 |
++if test "x$enable_introspection" = "xno" ; then |
60 |
++ AC_MSG_ERROR([Vala bindings require introspection support, please --enable-introspection]) |
61 |
++fi |
62 |
+ AC_PATH_PROG([VALA_API_GEN], [vapigen]) |
63 |
++fi |
64 |
+ |
65 |
+ ########################### |
66 |
+ # XSLT Processor |
67 |
+--- libdbusmenu-gtk/Makefile.am.orig 2011-02-05 15:09:06.429965757 +0100 |
68 |
++++ libdbusmenu-gtk/Makefile.am 2011-02-05 15:08:14.742722310 +0100 |
69 |
+@@ -131,6 +131,7 @@ |
70 |
+ # VAPI Files |
71 |
+ ######################### |
72 |
+ |
73 |
++if WANT_VALA |
74 |
+ if HAVE_INTROSPECTION |
75 |
+ |
76 |
+ vapidir = $(datadir)/vala/vapi |
77 |
+@@ -154,4 +155,5 @@ |
78 |
+ CLEANFILES += $(vapi_DATA) DbusmenuGtk$(VER)-0.4.tmp.gir |
79 |
+ |
80 |
+ endif |
81 |
++endif |
82 |
+ |
83 |
+--- libdbusmenu-glib/Makefile.am.orig 2011-02-05 15:08:49.613538681 +0100 |
84 |
++++ libdbusmenu-glib/Makefile.am 2011-02-05 15:06:23.826443241 +0100 |
85 |
+@@ -165,6 +165,7 @@ |
86 |
+ # VAPI Files |
87 |
+ ######################### |
88 |
+ |
89 |
++if WANT_VALA |
90 |
+ if HAVE_INTROSPECTION |
91 |
+ |
92 |
+ vapidir = $(datadir)/vala/vapi |
93 |
+@@ -176,4 +177,5 @@ |
94 |
+ CLEANFILES += $(vapi_DATA) |
95 |
+ |
96 |
+ endif |
97 |
++endif |
98 |
+ |
99 |
|
100 |
diff --git a/dev-libs/libdbusmenu/files/libdbusmenu-0.3.94-fix-introspection.patch b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.94-fix-introspection.patch |
101 |
new file mode 100644 |
102 |
index 0000000..a259942 |
103 |
--- /dev/null |
104 |
+++ b/dev-libs/libdbusmenu/files/libdbusmenu-0.3.94-fix-introspection.patch |
105 |
@@ -0,0 +1,11 @@ |
106 |
+--- ./libdbusmenu-glib/Makefile.am.orig 2011-02-05 16:16:34.481082458 +0100 |
107 |
++++ ./libdbusmenu-glib/Makefile.am 2011-02-05 16:20:31.703396315 +0100 |
108 |
+@@ -138,7 +138,7 @@ |
109 |
+ |
110 |
+ introspection_sources = $(libdbusmenu_glibinclude_HEADERS) |
111 |
+ |
112 |
+-Dbusmenu_Glib-0.4.gir: libdbusmenu-glib.la |
113 |
++Dbusmenu-Glib-0.4.gir: libdbusmenu-glib.la |
114 |
+ Dbusmenu_Glib_0_4_gir_INCLUDES = \ |
115 |
+ GObject-2.0 |
116 |
+ Dbusmenu_Glib_0_4_gir_CFLAGS = $(DBUSMENUGLIB_CFLAGS) -I$(top_srcdir) |
117 |
|
118 |
diff --git a/dev-libs/libdbusmenu/libdbusmenu-0.3.16.ebuild b/dev-libs/libdbusmenu/libdbusmenu-0.3.16-r1.ebuild |
119 |
similarity index 74% |
120 |
rename from dev-libs/libdbusmenu/libdbusmenu-0.3.16.ebuild |
121 |
rename to dev-libs/libdbusmenu/libdbusmenu-0.3.16-r1.ebuild |
122 |
index e3e418f..c912279 100644 |
123 |
--- a/dev-libs/libdbusmenu/libdbusmenu-0.3.16.ebuild |
124 |
+++ b/dev-libs/libdbusmenu/libdbusmenu-0.3.16-r1.ebuild |
125 |
@@ -13,9 +13,9 @@ SRC_URI="http://launchpad.net/dbusmenu/$(get_version_component_range 1-2)/${PV}/ |
126 |
LICENSE="LGPL-3" |
127 |
SLOT="0" |
128 |
KEYWORDS="~amd64 ~x86" |
129 |
-IUSE="gtk +introspection test" |
130 |
+IUSE="gtk +introspection test vala" |
131 |
|
132 |
-# Needs running dbus and a program called "dbus-test-runner" |
133 |
+# Needs dev-util/dbus-test-runner (not yet in tree) |
134 |
RESTRICT="test" |
135 |
|
136 |
RDEPEND="dev-libs/glib:2 |
137 |
@@ -25,10 +25,20 @@ RDEPEND="dev-libs/glib:2 |
138 |
DEPEND="${RDEPEND} |
139 |
introspection? ( >=dev-libs/gobject-introspection-0.6.7 ) |
140 |
test? ( dev-libs/json-glib[introspection=] ) |
141 |
+ vala? ( dev-lang/vala:0 ) |
142 |
dev-util/intltool |
143 |
dev-util/pkgconfig" |
144 |
|
145 |
+pkg_setup() { |
146 |
+ if use vala && use !introspection ; then |
147 |
+ eerror "Vala bindings (USE=vala) require introspection support (USE=introspection)" |
148 |
+ die "Vala bindings (USE=vala) require introspection support (USE=introspection)" |
149 |
+ fi |
150 |
+} |
151 |
+ |
152 |
src_prepare() { |
153 |
+ # Make Vala bindings optional, launchpad-bug #713685 |
154 |
+ epatch "${FILESDIR}/${P}-optional-vala.patch" |
155 |
# Make tests optional, launchpad-bug #552526 |
156 |
epatch "${FILESDIR}/${P}-optional-tests.patch" |
157 |
# Make libdbusmenu-gtk library optional, launchpad-bug #552530 |
158 |
@@ -39,6 +49,8 @@ src_prepare() { |
159 |
epatch "${FILESDIR}/${PN}-0.3.14-optional-dumper.patch" |
160 |
# Fixup undeclared HAVE_INTROSPECTION, launchpad-bug #552538 |
161 |
epatch "${FILESDIR}/${PN}-0.3.14-fix-aclocal.patch" |
162 |
+ # Fix introspection generation, launchpad-bug #713690 |
163 |
+ epatch "${FILESDIR}/${P}-fix-introspection.patch" |
164 |
# Drop -Werror in a release |
165 |
sed -e 's:-Werror::g' -i libdbusmenu-glib/Makefile.am libdbusmenu-gtk/Makefile.am || die "sed failed" |
166 |
eautoreconf |
167 |
@@ -49,7 +61,8 @@ src_configure() { |
168 |
$(use_enable gtk) \ |
169 |
$(use_enable gtk dumper) \ |
170 |
$(use_enable introspection) \ |
171 |
- $(use_enable test tests) |
172 |
+ $(use_enable test tests) \ |
173 |
+ $(use_enable vala) |
174 |
} |
175 |
|
176 |
src_test() { |
177 |
|
178 |
diff --git a/dev-libs/libdbusmenu/libdbusmenu-0.3.94.ebuild b/dev-libs/libdbusmenu/libdbusmenu-0.3.94-r1.ebuild |
179 |
similarity index 80% |
180 |
rename from dev-libs/libdbusmenu/libdbusmenu-0.3.94.ebuild |
181 |
rename to dev-libs/libdbusmenu/libdbusmenu-0.3.94-r1.ebuild |
182 |
index 7317cc5..47b58a0 100644 |
183 |
--- a/dev-libs/libdbusmenu/libdbusmenu-0.3.94.ebuild |
184 |
+++ b/dev-libs/libdbusmenu/libdbusmenu-0.3.94-r1.ebuild |
185 |
@@ -18,7 +18,7 @@ SRC_URI="http://launchpad.net/dbusmenu/${MY_MAJOR_VERSION}/${PV}/+download/${P}. |
186 |
LICENSE="LGPL-3" |
187 |
SLOT="0" |
188 |
KEYWORDS="~amd64 ~x86" |
189 |
-IUSE="gtk gtk3 +introspection test" |
190 |
+IUSE="gtk gtk3 +introspection test vala" |
191 |
|
192 |
# Needs dev-util/dbus-test-runner (not yet in tree) |
193 |
RESTRICT="test" |
194 |
@@ -33,10 +33,20 @@ RDEPEND="dev-libs/glib:2 |
195 |
DEPEND="${RDEPEND} |
196 |
introspection? ( >=dev-libs/gobject-introspection-0.6.7 ) |
197 |
test? ( dev-libs/json-glib[introspection=] ) |
198 |
+ vala? ( dev-lang/vala:0 ) |
199 |
dev-util/intltool |
200 |
dev-util/pkgconfig" |
201 |
|
202 |
+pkg_setup() { |
203 |
+ if use vala && use !introspection ; then |
204 |
+ eerror "Vala bindings (USE=vala) require introspection support (USE=introspection)" |
205 |
+ die "Vala bindings (USE=vala) require introspection support (USE=introspection)" |
206 |
+ fi |
207 |
+} |
208 |
+ |
209 |
src_prepare() { |
210 |
+ # Make tests optional, launchpad-bug #713685 |
211 |
+ epatch "${FILESDIR}/${PN}-0.3.16-optional-vala.patch" |
212 |
# Make tests optional, launchpad-bug #552526 |
213 |
epatch "${FILESDIR}/${PN}-0.3.16-optional-tests.patch" |
214 |
# Make libdbusmenu-gtk library optional, launchpad-bug #552530 |
215 |
@@ -47,6 +57,8 @@ src_prepare() { |
216 |
epatch "${FILESDIR}/${PN}-0.3.14-optional-dumper.patch" |
217 |
# Fixup undeclared HAVE_INTROSPECTION, launchpad-bug #552538 |
218 |
epatch "${FILESDIR}/${PN}-0.3.14-fix-aclocal.patch" |
219 |
+ # Fix introspection generation, launchpad-bug #713690 |
220 |
+ epatch "${FILESDIR}/${PN}-0.3.16-fix-introspection.patch" |
221 |
# Drop -Werror in a release |
222 |
sed -e 's:-Werror::g' -i libdbusmenu-glib/Makefile.am libdbusmenu-gtk/Makefile.am || die "sed failed" |
223 |
eautoreconf |
224 |
@@ -65,6 +77,7 @@ src_configure() { |
225 |
$(use_enable gtk dumper) \ |
226 |
$(use_enable introspection) \ |
227 |
$(use_enable test tests) \ |
228 |
+ $(use_enable vala) \ |
229 |
${conf} |
230 |
} |
231 |
|
232 |
|
233 |
diff --git a/dev-libs/libdbusmenu/metadata.xml b/dev-libs/libdbusmenu/metadata.xml |
234 |
index fb2117a..bb3e5c1 100644 |
235 |
--- a/dev-libs/libdbusmenu/metadata.xml |
236 |
+++ b/dev-libs/libdbusmenu/metadata.xml |
237 |
@@ -5,5 +5,6 @@ |
238 |
<use> |
239 |
<flag name="gtk3">Build experimental gtk3 version instead of using gtk2</flag> |
240 |
<flag name="introspection">Use dev-libs/gobject-introspection for introspection</flag> |
241 |
+ <flag name="vala">Enable bindings for dev-lang/vala</flag> |
242 |
</use> |
243 |
</pkgmetadata> |