Gentoo Archives: gentoo-commits

From: Alexandre Restovtsev <tetromino@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-libs/glib/
Date: Wed, 06 Jul 2011 18:12:39
Message-Id: 37fd3748c8a3605481ecb918113a7964e4ce0701.tetromino@gentoo
1 commit: 37fd3748c8a3605481ecb918113a7964e4ce0701
2 Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
3 AuthorDate: Wed Jul 6 17:53:30 2011 +0000
4 Commit: Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
5 CommitDate: Wed Jul 6 17:56:47 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=37fd3748
7
8 dev-libs/glib: 2.29.8 → 2.29.10
9
10 Version bump with lots of changes. Add test disabling changes from gx86.
11 Add systemtap support. Properly handle the gdbus-codegen python code.
12
13 ---
14 .../{glib-2.29.8.ebuild => glib-2.29.10.ebuild} | 73 ++++++++++++--------
15 dev-libs/glib/glib-9999.ebuild | 73 ++++++++++++--------
16 2 files changed, 86 insertions(+), 60 deletions(-)
17
18 diff --git a/dev-libs/glib/glib-2.29.8.ebuild b/dev-libs/glib/glib-2.29.10.ebuild
19 similarity index 70%
20 rename from dev-libs/glib/glib-2.29.8.ebuild
21 rename to dev-libs/glib/glib-2.29.10.ebuild
22 index 514df69..a41a8ff 100644
23 --- a/dev-libs/glib/glib-2.29.8.ebuild
24 +++ b/dev-libs/glib/glib-2.29.10.ebuild
25 @@ -6,7 +6,7 @@ EAPI="3"
26 GNOME_TARBALL_SUFFIX="xz"
27 PYTHON_DEPEND="2"
28
29 -inherit autotools gnome.org libtool eutils flag-o-matic pax-utils python virtualx
30 +inherit autotools gnome.org libtool eutils flag-o-matic multilib pax-utils python virtualx
31 if [[ ${PV} = 9999 ]]; then
32 inherit gnome2-live
33 fi
34 @@ -18,7 +18,7 @@ SRC_URI="${SRC_URI}
35
36 LICENSE="LGPL-2"
37 SLOT="2"
38 -IUSE="debug doc fam +introspection selinux +static-libs test xattr"
39 +IUSE="debug doc fam +introspection selinux +static-libs systemtap test xattr"
40 if [[ ${PV} = 9999 ]]; then
41 KEYWORDS=""
42 else
43 @@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
44 >=dev-libs/libxslt-1.0
45 >=dev-util/gtk-doc-1.15
46 ~app-text/docbook-xml-dtd-4.1.2 )
47 + systemtap? ( >=dev-util/systemtap-1.3 )
48 test? ( dev-util/pkgconfig
49 >=sys-apps/dbus-1.2.14 )
50 !<dev-util/gtk-doc-1.15-r2"
51 @@ -76,35 +77,39 @@ src_prepare() {
52 sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
53 -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
54
55 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
56 - if ! has_version dev-util/desktop-file-utils ; then
57 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
58 - ewarn "think on installing it to get these tests run."
59 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
60 - sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
61 - sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
62 - sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
63 - fi
64 -
65 - # Disable tests requiring dev-python/dbus-python, bug #349236
66 - if ! has_version dev-python/dbus-python ; then
67 - ewarn "Some tests will be skipped due dev-python/dbus-python not being present on your system,"
68 - ewarn "think on installing it to get these tests run."
69 - sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
70 - sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
71 - sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
72 - sed -i -e "/gdbus\/bus-watch-name/d" gio/tests/gdbus-names.c || die
73 - sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
74 - sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
75 - sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
76 - fi
77 -
78 if ! use test; then
79 # don't waste time building tests
80 - sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
81 - || die "sed failed"
82 + sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die
83 + else
84 + # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
85 + if ! has_version dev-util/desktop-file-utils ; then
86 + ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
87 + ewarn "think on installing it to get these tests run."
88 + sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
89 + sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
90 + sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
91 + sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
92 + fi
93 +
94 + # Disable tests requiring dev-python/dbus-python, bug #349236
95 + if ! has_version dev-python/dbus-python ; then
96 + ewarn "Some tests will be skipped due dev-python/dbus-python not being present on your system,"
97 + ewarn "think on installing it to get these tests run."
98 + sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
99 + sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
100 + sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
101 + sed -i -e "/gdbus\/bus-watch-name/d" gio/tests/gdbus-names.c || die
102 + sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
103 + sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
104 + sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
105 + fi
106 fi
107
108 + python_convert_shebangs -r 2 gio/gdbus-codegen/
109 +
110 + # disable pyc compiling
111 + ln -sfn $(type -P true) py-compile
112 +
113 # Needed for the punt-python-check patch, disabling timeout test
114 # Also needed to prevent croscompile failures, see bug #267603
115 AT_M4DIR="${WORKDIR}" eautoreconf
116 @@ -131,11 +136,11 @@ src_configure() {
117 $(use_enable fam) \
118 $(use_enable selinux) \
119 $(use_enable static-libs static) \
120 + $(use_enable systemtap dtrace) \
121 + $(use_enable systemtap systemtap) \
122 --enable-regex \
123 --with-pcre=internal \
124 - --with-threads=posix \
125 - --disable-dtrace \
126 - --disable-systemtap
127 + --with-threads=posix
128 }
129
130 src_install() {
131 @@ -200,4 +205,12 @@ pkg_postinst() {
132 ewarn "If you experience a breakage after updating dev-libs/glib try"
133 ewarn "rebuilding dev-libs/dbus-glib"
134 fi
135 +
136 + python_need_rebuild
137 + python_mod_optimize /usr/$(get_libdir)/gdbus-codegen
138 +
139 +}
140 +
141 +pkg_postrm() {
142 + python_mod_cleanup /usr/$(get_libdir)/gdbus-codegen
143 }
144
145 diff --git a/dev-libs/glib/glib-9999.ebuild b/dev-libs/glib/glib-9999.ebuild
146 index 514df69..a41a8ff 100644
147 --- a/dev-libs/glib/glib-9999.ebuild
148 +++ b/dev-libs/glib/glib-9999.ebuild
149 @@ -6,7 +6,7 @@ EAPI="3"
150 GNOME_TARBALL_SUFFIX="xz"
151 PYTHON_DEPEND="2"
152
153 -inherit autotools gnome.org libtool eutils flag-o-matic pax-utils python virtualx
154 +inherit autotools gnome.org libtool eutils flag-o-matic multilib pax-utils python virtualx
155 if [[ ${PV} = 9999 ]]; then
156 inherit gnome2-live
157 fi
158 @@ -18,7 +18,7 @@ SRC_URI="${SRC_URI}
159
160 LICENSE="LGPL-2"
161 SLOT="2"
162 -IUSE="debug doc fam +introspection selinux +static-libs test xattr"
163 +IUSE="debug doc fam +introspection selinux +static-libs systemtap test xattr"
164 if [[ ${PV} = 9999 ]]; then
165 KEYWORDS=""
166 else
167 @@ -37,6 +37,7 @@ DEPEND="${RDEPEND}
168 >=dev-libs/libxslt-1.0
169 >=dev-util/gtk-doc-1.15
170 ~app-text/docbook-xml-dtd-4.1.2 )
171 + systemtap? ( >=dev-util/systemtap-1.3 )
172 test? ( dev-util/pkgconfig
173 >=sys-apps/dbus-1.2.14 )
174 !<dev-util/gtk-doc-1.15-r2"
175 @@ -76,35 +77,39 @@ src_prepare() {
176 sed 's:^\(.*"/desktop-app-info/delete".*\):/*\1*/:' \
177 -i "${S}"/gio/tests/desktop-app-info.c || die "sed failed"
178
179 - # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
180 - if ! has_version dev-util/desktop-file-utils ; then
181 - ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
182 - ewarn "think on installing it to get these tests run."
183 - sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
184 - sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
185 - sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
186 - sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
187 - fi
188 -
189 - # Disable tests requiring dev-python/dbus-python, bug #349236
190 - if ! has_version dev-python/dbus-python ; then
191 - ewarn "Some tests will be skipped due dev-python/dbus-python not being present on your system,"
192 - ewarn "think on installing it to get these tests run."
193 - sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
194 - sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
195 - sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
196 - sed -i -e "/gdbus\/bus-watch-name/d" gio/tests/gdbus-names.c || die
197 - sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
198 - sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
199 - sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
200 - fi
201 -
202 if ! use test; then
203 # don't waste time building tests
204 - sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' -i Makefile.am Makefile.in \
205 - || die "sed failed"
206 + sed 's/^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$/\1\2/' -i $(find . -name Makefile.am -o -name Makefile.in) || die
207 + else
208 + # Disable tests requiring dev-util/desktop-file-utils when not installed, bug #286629
209 + if ! has_version dev-util/desktop-file-utils ; then
210 + ewarn "Some tests will be skipped due dev-util/desktop-file-utils not being present on your system,"
211 + ewarn "think on installing it to get these tests run."
212 + sed -i -e "/appinfo\/associations/d" gio/tests/appinfo.c || die
213 + sed -i -e "/desktop-app-info\/default/d" gio/tests/desktop-app-info.c || die
214 + sed -i -e "/desktop-app-info\/fallback/d" gio/tests/desktop-app-info.c || die
215 + sed -i -e "/desktop-app-info\/lastused/d" gio/tests/desktop-app-info.c || die
216 + fi
217 +
218 + # Disable tests requiring dev-python/dbus-python, bug #349236
219 + if ! has_version dev-python/dbus-python ; then
220 + ewarn "Some tests will be skipped due dev-python/dbus-python not being present on your system,"
221 + ewarn "think on installing it to get these tests run."
222 + sed -i -e "/connection\/filter/d" gio/tests/gdbus-connection.c || die
223 + sed -i -e "/connection\/large_message/d" gio/tests/gdbus-connection-slow.c || die
224 + sed -i -e "/gdbus\/proxy/d" gio/tests/gdbus-proxy.c || die
225 + sed -i -e "/gdbus\/bus-watch-name/d" gio/tests/gdbus-names.c || die
226 + sed -i -e "/gdbus\/proxy-well-known-name/d" gio/tests/gdbus-proxy-well-known-name.c || die
227 + sed -i -e "/gdbus\/introspection-parser/d" gio/tests/gdbus-introspection.c || die
228 + sed -i -e "/gdbus\/method-calls-in-thread/d" gio/tests/gdbus-threading.c || die
229 + fi
230 fi
231
232 + python_convert_shebangs -r 2 gio/gdbus-codegen/
233 +
234 + # disable pyc compiling
235 + ln -sfn $(type -P true) py-compile
236 +
237 # Needed for the punt-python-check patch, disabling timeout test
238 # Also needed to prevent croscompile failures, see bug #267603
239 AT_M4DIR="${WORKDIR}" eautoreconf
240 @@ -131,11 +136,11 @@ src_configure() {
241 $(use_enable fam) \
242 $(use_enable selinux) \
243 $(use_enable static-libs static) \
244 + $(use_enable systemtap dtrace) \
245 + $(use_enable systemtap systemtap) \
246 --enable-regex \
247 --with-pcre=internal \
248 - --with-threads=posix \
249 - --disable-dtrace \
250 - --disable-systemtap
251 + --with-threads=posix
252 }
253
254 src_install() {
255 @@ -200,4 +205,12 @@ pkg_postinst() {
256 ewarn "If you experience a breakage after updating dev-libs/glib try"
257 ewarn "rebuilding dev-libs/dbus-glib"
258 fi
259 +
260 + python_need_rebuild
261 + python_mod_optimize /usr/$(get_libdir)/gdbus-codegen
262 +
263 +}
264 +
265 +pkg_postrm() {
266 + python_mod_cleanup /usr/$(get_libdir)/gdbus-codegen
267 }