Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: dev-python/pygobject/files/, dev-python/pygobject/
Date: Mon, 25 Nov 2013 23:15:10
Message-Id: 1385421261.5dab79e5344641e02bd371bd5f2a6d8e476ac7d4.eva@gentoo
1 commit: 5dab79e5344641e02bd371bd5f2a6d8e476ac7d4
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 25 22:44:15 2013 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 25 23:14:21 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=5dab79e5
7
8 dev-python/pygobject: 3.8.3 → 3.10.2
9
10 ---
11 .../pygobject-3.0.3-disable-new-gi-tests.patch | 69 ------------------
12 .../files/pygobject-3.4.1.1-make_check.patch | 84 ----------------------
13 ...gobject-9999.ebuild => pygobject-3.10.2.ebuild} | 70 ++++++++----------
14 dev-python/pygobject/pygobject-9999.ebuild | 63 ++++++++--------
15 4 files changed, 58 insertions(+), 228 deletions(-)
16
17 diff --git a/dev-python/pygobject/files/pygobject-3.0.3-disable-new-gi-tests.patch b/dev-python/pygobject/files/pygobject-3.0.3-disable-new-gi-tests.patch
18 deleted file mode 100644
19 index a445374..0000000
20 --- a/dev-python/pygobject/files/pygobject-3.0.3-disable-new-gi-tests.patch
21 +++ /dev/null
22 @@ -1,69 +0,0 @@
23 -Disable tests requiring >=gobject-introspection-1.31
24 -
25 -diff --git a/tests/test_everything.py b/tests/test_everything.py
26 -index 43735e5..ecfdef4 100644
27 ---- a/tests/test_everything.py
28 -+++ b/tests/test_everything.py
29 -@@ -507,22 +507,3 @@ class TestAdvancedInterfaces(unittest.TestCase):
30 - self.assertEquals(ret[0], 51);
31 - self.assertEquals(ret[1], 61);
32 - self.assertEquals(ret[2], 32);
33 --
34 -- def test_obj_skip_return_val_no_out(self):
35 -- obj = Everything.TestObj();
36 -- # raises an error for 0, succeeds for any other value
37 -- self.assertRaises(GLib.GError, obj.skip_return_val_no_out, 0)
38 --
39 -- ret = obj.skip_return_val_no_out(1)
40 -- self.assertEquals(ret, None)
41 --
42 --class TestSignals(unittest.TestCase):
43 -- def test_object_param_signal(self):
44 -- obj = Everything.TestObj();
45 --
46 -- def callback (obj_param):
47 -- self.assertEquals(obj_param.props.int, 3)
48 -- self.assertEquals(obj_param.__grefcount__, 2)
49 --
50 -- obj.connect('sig-with-obj', callback)
51 -- obj.emit_sig_with_obj()
52 -diff --git a/tests/test_gi.py b/tests/test_gi.py
53 -index 0a9b1b2..7e24778 100644
54 ---- a/tests/test_gi.py
55 -+++ b/tests/test_gi.py
56 -@@ -770,18 +770,6 @@ class TestArray(unittest.TestCase):
57 - def test_gstrv_inout(self):
58 - self.assertEquals(['-1', '0', '1', '2'], GIMarshallingTests.gstrv_inout(['0', '1', '2']))
59 -
60 -- def test_array_gvariant_none_in(self):
61 -- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
62 -- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
63 --
64 -- def test_array_gvariant_container_in(self):
65 -- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
66 -- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
67 --
68 -- def test_array_gvariant_full_in(self):
69 -- v = [GLib.Variant("i", 27), GLib.Variant("s", "Hello")]
70 -- self.assertEquals([27, "Hello"], map(GLib.Variant.unpack, GIMarshallingTests.array_gvariant_none_in(v)))
71 --
72 - def test_bytearray_gvariant(self):
73 - v = GLib.Variant.new_bytestring("foo")
74 - self.assertEquals(v.get_bytestring(), "foo")
75 -@@ -1651,16 +1639,6 @@ class TestPythonGObject(unittest.TestCase):
76 - def do_method_not_a_vfunc(self):
77 - pass
78 -
79 -- def test_subsubobject(self):
80 -- class SubSubSubObject(GIMarshallingTests.SubSubObject):
81 -- def do_method_deep_hierarchy(self, num):
82 -- self.props.int = num * 2
83 --
84 -- sub_sub_sub_object = SubSubSubObject()
85 -- GIMarshallingTests.SubSubObject.do_method_deep_hierarchy(sub_sub_sub_object, 5)
86 -- self.assertEqual(sub_sub_sub_object.props.int, 5)
87 --
88 --
89 - class TestMultiOutputArgs(unittest.TestCase):
90 -
91 - def test_int_out_out(self):
92
93 diff --git a/dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch b/dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch
94 deleted file mode 100644
95 index 7aa7058..0000000
96 --- a/dev-python/pygobject/files/pygobject-3.4.1.1-make_check.patch
97 +++ /dev/null
98 @@ -1,84 +0,0 @@
99 -From d0885d5757f02f53dbc8036054a1ced7f727eb08 Mon Sep 17 00:00:00 2001
100 -From: Gilles Dartiguelongue <eva@g.o>
101 -Date: Fri, 5 Nov 2010 23:39:08 +0100
102 -Subject: [PATCH] Do not build tests unless needed
103 -
104 -[Alexandre Rostovtsev <tetromino@×××××.com>: port to 2.90.1]
105 ----
106 - tests/Makefile.am | 12 ++++++------
107 - tests/runtests.py | 3 +++
108 - 2 files changed, 9 insertions(+), 6 deletions(-)
109 -
110 -diff --git a/tests/Makefile.am b/tests/Makefile.am
111 -index 7a619bf..a3cbf57 100644
112 ---- a/tests/Makefile.am
113 -+++ b/tests/Makefile.am
114 -@@ -1,5 +1,5 @@
115 - CLEANFILES =
116 --noinst_LTLIBRARIES = libgimarshallingtests.la
117 -+check_LTLIBRARIES = libgimarshallingtests.la
118 - test_typelibs = GIMarshallingTests-1.0.typelib
119 -
120 - nodist_libgimarshallingtests_la_SOURCES = $(GI_DATADIR)/tests/gimarshallingtests.c $(GI_DATADIR)/tests/gimarshallingtests.h
121 -@@ -23,7 +23,7 @@ GIMarshallingTests-1.0.typelib: GIMarshallingTests-1.0.gir Makefile
122 -
123 - # regress.c needs cairo
124 - if ENABLE_CAIRO
125 --noinst_LTLIBRARIES += libregress.la
126 -+check_LTLIBRARIES += libregress.la
127 - test_typelibs += Regress-1.0.typelib
128 - nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h
129 - libregress_la_CFLAGS = $(GIO_CFLAGS) $(CAIRO_CFLAGS)
130 -@@ -52,7 +52,7 @@ gschemas.compiled: org.gnome.test.gschema.xml
131 -
132 - CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib gschemas.compiled
133 -
134 --noinst_LTLIBRARIES += testhelper.la
135 -+check_LTLIBRARIES += testhelper.la
136 -
137 - testhelper_la_CFLAGS = -I$(top_srcdir)/gi/_gobject -I$(top_srcdir)/gi/_glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS)
138 - testhelper_la_LDFLAGS = -module -avoid-version
139 -@@ -72,7 +72,7 @@ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES)
140 - test -L $@ || $(LN_S) .libs/$@ $@
141 -
142 -
143 --all: $(LTLIBRARIES:.la=.so)
144 -+all: $(check_LTLIBRARIES:.la=.so)
145 -
146 - EXTRA_DIST = \
147 - compathelper.py \
148 -@@ -112,7 +112,7 @@ EXTRA_DIST = \
149 - $(NULL)
150 -
151 - clean-local:
152 -- rm -f $(LTLIBRARIES:.la=.so) file.txt~
153 -+ rm -f $(check_LTLIBRARIES:.la=.so) file.txt~
154 -
155 - DBUS_LAUNCH=$(shell which dbus-launch)
156 - RUN_TESTS_ENV_VARS= \
157 -@@ -123,7 +123,7 @@ RUN_TESTS_ENV_VARS= \
158 - MALLOC_PERTURB_=85 \
159 - TESTS_BUILDDIR=$(builddir)
160 -
161 --check-local: $(LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled
162 -+check-local: $(check_LTLIBRARIES:.la=.so) $(test_typelibs) gschemas.compiled
163 - @echo " CHECK Pyflakes"
164 - @if type pyflakes >/dev/null 2>&1; then pyflakes $(top_srcdir); else echo "skipped, pyflakes not installed"; fi
165 - @echo " CHECK PEP8"
166 -diff --git a/tests/runtests.py b/tests/runtests.py
167 -index c518fcc..35bb5c4 100755
168 ---- a/tests/runtests.py
169 -+++ b/tests/runtests.py
170 -@@ -34,6 +34,9 @@ if sys.version_info[:2] == (2, 6):
171 - unittest.TestCase.assertGreater = assertGreater
172 - unittest.TestCase.assertIsInstance = assertIsInstance
173 -
174 -+# Some tests fail with translated messages.
175 -+os.environ["LC_ALL"] = "C"
176 -+
177 - if '--help' in sys.argv:
178 - print("Usage: ./runtests.py <testfiles>")
179 - sys.exit(0)
180 ---
181 -1.7.12.4
182 -
183
184 diff --git a/dev-python/pygobject/pygobject-9999.ebuild b/dev-python/pygobject/pygobject-3.10.2.ebuild
185 similarity index 58%
186 copy from dev-python/pygobject/pygobject-9999.ebuild
187 copy to dev-python/pygobject/pygobject-3.10.2.ebuild
188 index 3b3ba4c..730eb8f 100644
189 --- a/dev-python/pygobject/pygobject-9999.ebuild
190 +++ b/dev-python/pygobject/pygobject-3.10.2.ebuild
191 @@ -1,37 +1,34 @@
192 -# Copyright 1999-2012 Gentoo Foundation
193 +# Copyright 1999-2013 Gentoo Foundation
194 # Distributed under the terms of the GNU General Public License v2
195 # $Header: $
196
197 EAPI="5"
198 GCONF_DEBUG="no"
199 GNOME2_LA_PUNT="yes"
200 -PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )
201 +PYTHON_COMPAT=( python{2_7,3_2,3_3} )
202
203 -inherit autotools eutils gnome2 python-r1 virtualx
204 -if [[ ${PV} = 9999 ]]; then
205 - inherit gnome2-live
206 -fi
207 +inherit gnome2 python-r1 virtualx
208
209 DESCRIPTION="GLib's GObject library bindings for Python"
210 HOMEPAGE="http://www.pygtk.org/"
211
212 LICENSE="LGPL-2.1+"
213 SLOT="3"
214 -if [[ ${PV} = 9999 ]]; then
215 - KEYWORDS=""
216 -else
217 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
218 -fi
219 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
220 IUSE="+cairo examples test +threads"
221
222 -REQUIRED_USE="test? ( cairo )"
223 +REQUIRED_USE="
224 + ${PYTHON_REQUIRED_USE}
225 + test? ( cairo )
226 +"
227
228 -COMMON_DEPEND=">=dev-libs/glib-2.31.0:2
229 - >=dev-libs/gobject-introspection-1.34.1.1
230 +COMMON_DEPEND="
231 + >=dev-libs/glib-2.35.9:2
232 + >=dev-libs/gobject-introspection-1.35.9
233 virtual/libffi:=
234 - cairo? ( >=dev-python/pycairo-1.10.0 )
235 - ${PYTHON_DEPS}"
236 -# TODO: should be >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}]
237 + cairo? ( >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}] )
238 + ${PYTHON_DEPS}
239 +"
240 DEPEND="${COMMON_DEPEND}
241 x11-libs/cairo[glib]
242 virtual/pkgconfig
243 @@ -39,9 +36,12 @@ DEPEND="${COMMON_DEPEND}
244 dev-libs/atk[introspection]
245 media-fonts/font-cursor-misc
246 media-fonts/font-misc-misc
247 + virtual/python-unittest2[${PYTHON_USEDEP}]
248 x11-libs/gdk-pixbuf:2[introspection]
249 x11-libs/gtk+:3[introspection]
250 - x11-libs/pango[introspection] )"
251 + x11-libs/pango[introspection] )
252 +"
253 +# gnome-base/gnome-common required by eautoreconf
254
255 # We now disable introspection support in slot 2 per upstream recommendation
256 # (see https://bugzilla.gnome.org/show_bug.cgi?id=642048#c9); however,
257 @@ -52,37 +52,29 @@ RDEPEND="${COMMON_DEPEND}
258 !<dev-python/pygobject-2.28.6-r50:2[introspection]"
259
260 src_prepare() {
261 - DOCS="AUTHORS ChangeLog* NEWS README"
262 - # Hard-enable libffi support since both gobject-introspection and
263 - # glib-2.29.x rdepend on it anyway
264 - # docs disabled by upstream default since they are very out of date
265 - G2CONF="${G2CONF}
266 - --disable-dependency-tracking
267 - --with-ffi
268 - $(use_enable cairo)
269 - $(use_enable threads thread)"
270 -
271 - # Do not build tests if unneeded, bug #226345
272 - epatch "${FILESDIR}/${PN}-3.4.1.1-make_check.patch"
273 -
274 - [[ ${PV} != 9999 ]] && eautoreconf
275 gnome2_src_prepare
276 -
277 python_copy_sources
278 }
279
280 src_configure() {
281 - python_foreach_impl run_in_build_dir gnome2_src_configure
282 + # Hard-enable libffi support since both gobject-introspection and
283 + # glib-2.29.x rdepend on it anyway
284 + # docs disabled by upstream default since they are very out of date
285 + python_foreach_impl run_in_build_dir \
286 + gnome2_src_configure \
287 + --with-ffi \
288 + $(use_enable cairo) \
289 + $(use_enable threads thread)
290 }
291
292 src_compile() {
293 python_foreach_impl run_in_build_dir gnome2_src_compile
294 }
295
296 -# FIXME: With python multiple ABI support, tests return 1 even when they pass
297 src_test() {
298 unset DBUS_SESSION_BUS_ADDRESS
299 export GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
300 + export GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
301
302 testing() {
303 export XDG_CACHE_HOME="${T}/${EPYTHON}"
304 @@ -94,6 +86,8 @@ src_test() {
305 }
306
307 src_install() {
308 + DOCS="AUTHORS ChangeLog* NEWS README"
309 +
310 python_foreach_impl run_in_build_dir gnome2_src_install
311
312 if use examples; then
313 @@ -101,9 +95,3 @@ src_install() {
314 doins -r examples
315 fi
316 }
317 -
318 -run_in_build_dir() {
319 - pushd "${BUILD_DIR}" > /dev/null || die
320 - "$@"
321 - popd > /dev/null
322 -}
323
324 diff --git a/dev-python/pygobject/pygobject-9999.ebuild b/dev-python/pygobject/pygobject-9999.ebuild
325 index 3b3ba4c..664a5d3 100644
326 --- a/dev-python/pygobject/pygobject-9999.ebuild
327 +++ b/dev-python/pygobject/pygobject-9999.ebuild
328 @@ -1,13 +1,13 @@
329 -# Copyright 1999-2012 Gentoo Foundation
330 +# Copyright 1999-2013 Gentoo Foundation
331 # Distributed under the terms of the GNU General Public License v2
332 # $Header: $
333
334 EAPI="5"
335 GCONF_DEBUG="no"
336 GNOME2_LA_PUNT="yes"
337 -PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} )
338 +PYTHON_COMPAT=( python{2_7,3_2,3_3} )
339
340 -inherit autotools eutils gnome2 python-r1 virtualx
341 +inherit gnome2 python-r1 virtualx
342 if [[ ${PV} = 9999 ]]; then
343 inherit gnome2-live
344 fi
345 @@ -20,18 +20,22 @@ SLOT="3"
346 if [[ ${PV} = 9999 ]]; then
347 KEYWORDS=""
348 else
349 - KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
350 + KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
351 fi
352 IUSE="+cairo examples test +threads"
353
354 -REQUIRED_USE="test? ( cairo )"
355 +REQUIRED_USE="
356 + ${PYTHON_REQUIRED_USE}
357 + test? ( cairo )
358 +"
359
360 -COMMON_DEPEND=">=dev-libs/glib-2.31.0:2
361 - >=dev-libs/gobject-introspection-1.34.1.1
362 +COMMON_DEPEND="
363 + >=dev-libs/glib-2.35.9:2
364 + >=dev-libs/gobject-introspection-1.35.9
365 virtual/libffi:=
366 - cairo? ( >=dev-python/pycairo-1.10.0 )
367 - ${PYTHON_DEPS}"
368 -# TODO: should be >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}]
369 + cairo? ( >=dev-python/pycairo-1.10.0[${PYTHON_USEDEP}] )
370 + ${PYTHON_DEPS}
371 +"
372 DEPEND="${COMMON_DEPEND}
373 x11-libs/cairo[glib]
374 virtual/pkgconfig
375 @@ -39,9 +43,12 @@ DEPEND="${COMMON_DEPEND}
376 dev-libs/atk[introspection]
377 media-fonts/font-cursor-misc
378 media-fonts/font-misc-misc
379 + virtual/python-unittest2[${PYTHON_USEDEP}]
380 x11-libs/gdk-pixbuf:2[introspection]
381 x11-libs/gtk+:3[introspection]
382 - x11-libs/pango[introspection] )"
383 + x11-libs/pango[introspection] )
384 +"
385 +# gnome-base/gnome-common required by eautoreconf
386
387 # We now disable introspection support in slot 2 per upstream recommendation
388 # (see https://bugzilla.gnome.org/show_bug.cgi?id=642048#c9); however,
389 @@ -52,37 +59,29 @@ RDEPEND="${COMMON_DEPEND}
390 !<dev-python/pygobject-2.28.6-r50:2[introspection]"
391
392 src_prepare() {
393 - DOCS="AUTHORS ChangeLog* NEWS README"
394 - # Hard-enable libffi support since both gobject-introspection and
395 - # glib-2.29.x rdepend on it anyway
396 - # docs disabled by upstream default since they are very out of date
397 - G2CONF="${G2CONF}
398 - --disable-dependency-tracking
399 - --with-ffi
400 - $(use_enable cairo)
401 - $(use_enable threads thread)"
402 -
403 - # Do not build tests if unneeded, bug #226345
404 - epatch "${FILESDIR}/${PN}-3.4.1.1-make_check.patch"
405 -
406 - [[ ${PV} != 9999 ]] && eautoreconf
407 gnome2_src_prepare
408 -
409 python_copy_sources
410 }
411
412 src_configure() {
413 - python_foreach_impl run_in_build_dir gnome2_src_configure
414 + # Hard-enable libffi support since both gobject-introspection and
415 + # glib-2.29.x rdepend on it anyway
416 + # docs disabled by upstream default since they are very out of date
417 + python_foreach_impl run_in_build_dir \
418 + gnome2_src_configure \
419 + --with-ffi \
420 + $(use_enable cairo) \
421 + $(use_enable threads thread)
422 }
423
424 src_compile() {
425 python_foreach_impl run_in_build_dir gnome2_src_compile
426 }
427
428 -# FIXME: With python multiple ABI support, tests return 1 even when they pass
429 src_test() {
430 unset DBUS_SESSION_BUS_ADDRESS
431 export GIO_USE_VFS="local" # prevents odd issues with deleting ${T}/.gvfs
432 + export GIO_USE_VOLUME_MONITOR="unix" # prevent udisks-related failures in chroots, bug #449484
433
434 testing() {
435 export XDG_CACHE_HOME="${T}/${EPYTHON}"
436 @@ -94,6 +93,8 @@ src_test() {
437 }
438
439 src_install() {
440 + DOCS="AUTHORS ChangeLog* NEWS README"
441 +
442 python_foreach_impl run_in_build_dir gnome2_src_install
443
444 if use examples; then
445 @@ -101,9 +102,3 @@ src_install() {
446 doins -r examples
447 fi
448 }
449 -
450 -run_in_build_dir() {
451 - pushd "${BUILD_DIR}" > /dev/null || die
452 - "$@"
453 - popd > /dev/null
454 -}