1 |
commit: 35451aeb81a4b622505ddaaf7585e88c8e517e45 |
2 |
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 28 17:34:44 2011 +0000 |
4 |
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 28 17:35:01 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=35451aeb |
7 |
|
8 |
dev-python/pygobject: 2.28.4 moved to tree |
9 |
|
10 |
--- |
11 |
.../pygobject-2.28.3-disable-failing-tests.patch | 55 -------- |
12 |
.../pygobject-2.28.3-fix-codegen-location.patch | 64 ---------- |
13 |
.../files/pygobject-2.28.3-make_check.patch | 76 ------------ |
14 |
...t-2.28.3-support_multiple_python_versions.patch | 103 ---------------- |
15 |
dev-python/pygobject/pygobject-2.28.4.ebuild | 130 -------------------- |
16 |
5 files changed, 0 insertions(+), 428 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/pygobject/files/pygobject-2.28.3-disable-failing-tests.patch b/dev-python/pygobject/files/pygobject-2.28.3-disable-failing-tests.patch |
19 |
deleted file mode 100644 |
20 |
index 86a66dd..0000000 |
21 |
--- a/dev-python/pygobject/files/pygobject-2.28.3-disable-failing-tests.patch |
22 |
+++ /dev/null |
23 |
@@ -1,55 +0,0 @@ |
24 |
-From df94ec3795c1efaf3eab9207c957e3ea5744971b Mon Sep 17 00:00:00 2001 |
25 |
-From: Gilles Dartiguelongue <eva@g.o> |
26 |
-Date: Fri, 8 Apr 2011 16:23:37 +0200 |
27 |
-Subject: [PATCH 4/4] Disable tests that fail |
28 |
- |
29 |
---- |
30 |
- tests/test_gio.py | 4 ++-- |
31 |
- tests/test_overrides.py | 4 ++-- |
32 |
- 2 files changed, 4 insertions(+), 4 deletions(-) |
33 |
- |
34 |
-diff --git a/tests/test_gio.py b/tests/test_gio.py |
35 |
-index e14eddf..9c645f5 100644 |
36 |
---- a/tests/test_gio.py |
37 |
-+++ b/tests/test_gio.py |
38 |
-@@ -1007,7 +1007,7 @@ class TestVfs(unittest.TestCase): |
39 |
- class TestVolume(unittest.TestCase): |
40 |
- def setUp(self): |
41 |
- self.monitor = gio.volume_monitor_get() |
42 |
-- |
43 |
-+""" |
44 |
- def testVolumeEnumerate(self): |
45 |
- volumes = self.monitor.get_volumes() |
46 |
- self.failUnless(isinstance(volumes, list)) |
47 |
-@@ -1018,7 +1018,7 @@ class TestVolume(unittest.TestCase): |
48 |
- for id in ids: |
49 |
- if id is not None: |
50 |
- self.failUnless(isinstance(id, str)) |
51 |
-- |
52 |
-+""" |
53 |
- class TestFileInputStream(unittest.TestCase): |
54 |
- def setUp(self): |
55 |
- self._f = open("file.txt", "w+") |
56 |
-diff --git a/tests/test_overrides.py b/tests/test_overrides.py |
57 |
-index 3421c3a..9de1a7f 100644 |
58 |
---- a/tests/test_overrides.py |
59 |
-+++ b/tests/test_overrides.py |
60 |
-@@ -322,13 +322,13 @@ class TestPango(unittest.TestCase): |
61 |
- desc = Pango.FontDescription('monospace') |
62 |
- self.assertEquals(desc.get_family(), 'monospace') |
63 |
- self.assertEquals(desc.get_variant(), Pango.Variant.NORMAL) |
64 |
-- |
65 |
-+""" |
66 |
- def test_layout(self): |
67 |
- self.assertRaises(TypeError, Pango.Layout) |
68 |
- context = Pango.Context() |
69 |
- layout = Pango.Layout(context) |
70 |
- self.assertEquals(layout.get_context(), context) |
71 |
-- |
72 |
-+""" |
73 |
- class TestGdk(unittest.TestCase): |
74 |
- |
75 |
- def test_constructor(self): |
76 |
--- |
77 |
-1.7.4.1 |
78 |
- |
79 |
|
80 |
diff --git a/dev-python/pygobject/files/pygobject-2.28.3-fix-codegen-location.patch b/dev-python/pygobject/files/pygobject-2.28.3-fix-codegen-location.patch |
81 |
deleted file mode 100644 |
82 |
index 44440a5..0000000 |
83 |
--- a/dev-python/pygobject/files/pygobject-2.28.3-fix-codegen-location.patch |
84 |
+++ /dev/null |
85 |
@@ -1,64 +0,0 @@ |
86 |
-From b3e852d29bfd1e90f7e0da409fd0ae36cc01675a Mon Sep 17 00:00:00 2001 |
87 |
-From: Gilles Dartiguelongue <eva@g.o> |
88 |
-Date: Fri, 8 Apr 2011 15:36:35 +0200 |
89 |
-Subject: [PATCH 1/3] Move codegen to a non-private directory |
90 |
- |
91 |
---- |
92 |
- codegen/Makefile.am | 2 +- |
93 |
- codegen/pygobject-codegen-2.0.in | 3 ++- |
94 |
- pygobject-2.0.pc.in | 3 ++- |
95 |
- 3 files changed, 5 insertions(+), 3 deletions(-) |
96 |
- |
97 |
-diff --git a/codegen/Makefile.am b/codegen/Makefile.am |
98 |
-index f9886eb..d714ff2 100644 |
99 |
---- a/codegen/Makefile.am |
100 |
-+++ b/codegen/Makefile.am |
101 |
-@@ -2,7 +2,7 @@ PLATFORM_VERSION = 2.0 |
102 |
- |
103 |
- bin_SCRIPTS = pygobject-codegen-$(PLATFORM_VERSION) |
104 |
- |
105 |
--codegendir = $(pkgdatadir)/$(PLATFORM_VERSION)/codegen |
106 |
-+codegendir = $(pyexecdir)/gtk-2.0/codegen |
107 |
- |
108 |
- codegen_SCRIPTS = \ |
109 |
- code-coverage.py \ |
110 |
-diff --git a/codegen/pygobject-codegen-2.0.in b/codegen/pygobject-codegen-2.0.in |
111 |
-index c5c912e..c04451b 100644 |
112 |
---- a/codegen/pygobject-codegen-2.0.in |
113 |
-+++ b/codegen/pygobject-codegen-2.0.in |
114 |
-@@ -1,9 +1,10 @@ |
115 |
- #!/bin/sh |
116 |
- |
117 |
- prefix=@prefix@ |
118 |
-+exec_prefix=@exec_prefix@ |
119 |
- datarootdir=@datarootdir@ |
120 |
- datadir=@datadir@ |
121 |
--codegendir=${datadir}/pygobject/2.0/codegen |
122 |
-+codegendir=@pyexecdir@/gtk-2.0/codegen |
123 |
- |
124 |
- PYTHONPATH=$codegendir |
125 |
- export PYTHONPATH |
126 |
-diff --git a/pygobject-2.0.pc.in b/pygobject-2.0.pc.in |
127 |
-index a47b685..0d1a811 100644 |
128 |
---- a/pygobject-2.0.pc.in |
129 |
-+++ b/pygobject-2.0.pc.in |
130 |
-@@ -4,6 +4,7 @@ includedir=@includedir@ |
131 |
- datarootdir=@datarootdir@ |
132 |
- datadir=@datadir@ |
133 |
- libdir=@libdir@ |
134 |
-+pyexecdir=@pyexecdir@ |
135 |
- |
136 |
- # you can use the --variable=pygtkincludedir argument to |
137 |
- # pkg-config to get this value. You might want to use this to |
138 |
-@@ -12,7 +13,7 @@ pygtkincludedir=${includedir}/pygtk-2.0 |
139 |
- fixxref=${datadir}/pygobject/xsl/fixxref.py |
140 |
- pygdocs=${datadir}/gtk-doc/html/pygobject |
141 |
- defsdir=${datadir}/pygobject/2.0/defs |
142 |
--codegendir=${datadir}/pygobject/2.0/codegen |
143 |
-+codegendir=${pyexecdir}/gtk-2.0/codegen |
144 |
- overridesdir=@pyexecdir@/gi/overrides |
145 |
- |
146 |
- Name: PyGObject |
147 |
--- |
148 |
-1.7.4.1 |
149 |
- |
150 |
|
151 |
diff --git a/dev-python/pygobject/files/pygobject-2.28.3-make_check.patch b/dev-python/pygobject/files/pygobject-2.28.3-make_check.patch |
152 |
deleted file mode 100644 |
153 |
index 45c04b9..0000000 |
154 |
--- a/dev-python/pygobject/files/pygobject-2.28.3-make_check.patch |
155 |
+++ /dev/null |
156 |
@@ -1,76 +0,0 @@ |
157 |
-From b5c4b8b97a1ccb9a4c63ab726ea9c84d81ef51ca Mon Sep 17 00:00:00 2001 |
158 |
-From: Gilles Dartiguelongue <eva@g.o> |
159 |
-Date: Fri, 5 Nov 2010 23:39:08 +0100 |
160 |
-Subject: [PATCH 2/3] Do not build tests unless needed |
161 |
- |
162 |
---- |
163 |
- tests/Makefile.am | 12 +++++------- |
164 |
- tests/runtests.py | 2 ++ |
165 |
- 2 files changed, 7 insertions(+), 7 deletions(-) |
166 |
- |
167 |
-diff --git a/tests/Makefile.am b/tests/Makefile.am |
168 |
-index bad15f0..5b0859a 100644 |
169 |
---- a/tests/Makefile.am |
170 |
-+++ b/tests/Makefile.am |
171 |
-@@ -1,7 +1,7 @@ |
172 |
- CLEANFILES = |
173 |
--noinst_LTLIBRARIES = |
174 |
-+check_LTLIBRARIES = |
175 |
- if ENABLE_INTROSPECTION |
176 |
--noinst_LTLIBRARIES += libregress.la libgimarshallingtests.la |
177 |
-+check_LTLIBRARIES += libregress.la libgimarshallingtests.la |
178 |
- |
179 |
- nodist_libregress_la_SOURCES = $(GI_DATADIR)/tests/regress.c $(GI_DATADIR)/tests/regress.h |
180 |
- libregress_la_CFLAGS = $(GIO_CFLAGS) $(PYCAIRO_CFLAGS) |
181 |
-@@ -46,7 +46,7 @@ gschemas.compiled: org.gnome.test.gschema.xml |
182 |
- CLEANFILES += Regress-1.0.gir Regress-1.0.typelib GIMarshallingTests-1.0.gir GIMarshallingTests-1.0.typelib gschemas.compiled |
183 |
- endif |
184 |
- |
185 |
--noinst_LTLIBRARIES += testhelper.la |
186 |
-+check_LTLIBRARIES += testhelper.la |
187 |
- |
188 |
- testhelper_la_CFLAGS = -I$(top_srcdir)/gobject -I$(top_srcdir)/glib $(PYTHON_INCLUDES) $(GLIB_CFLAGS) |
189 |
- testhelper_la_LDFLAGS = -module -avoid-version |
190 |
-@@ -66,8 +66,6 @@ testhelper.la: $(testhelper_la_OBJECTS) $(testhelper_la_DEPENDENCIES) |
191 |
- test -L $@ || $(LN_S) .libs/$@ $@ |
192 |
- |
193 |
- |
194 |
--all: $(LTLIBRARIES:.la=.so) |
195 |
-- |
196 |
- TEST_FILES_STATIC = \ |
197 |
- test_gobject.py \ |
198 |
- test_interface.py \ |
199 |
-@@ -109,7 +107,7 @@ EXTRA_DIST = \ |
200 |
- EXTRA_DIST += $(TEST_FILES_STATIC) $(TEST_FILES_GI) $(TEST_FILES_GIO) |
201 |
- |
202 |
- clean-local: |
203 |
-- rm -f $(LTLIBRARIES:.la=.so) file.txt~ |
204 |
-+ rm -f $(check_LTLIBRARIES:.la=.so) file.txt~ |
205 |
- |
206 |
- DBUS_LAUNCH=$(shell which dbus-launch) |
207 |
- RUN_TESTS_ENV_VARS= \ |
208 |
-@@ -121,7 +119,7 @@ RUN_TESTS_ENV_VARS= \ |
209 |
- RUN_TESTS_LAUNCH=$(RUN_TESTS_ENV_VARS) $(DBUS_LAUNCH) $(EXEC_NAME) $(PYTHON) $(srcdir)/runtests.py |
210 |
- |
211 |
- # run tests in separately to avoid loading static and introspection bindings in the same process |
212 |
--check-local: $(LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled |
213 |
-+check-local: $(check_LTLIBRARIES:.la=.so) Regress-1.0.typelib GIMarshallingTests-1.0.typelib gschemas.compiled |
214 |
- TEST_FILES="$(TEST_FILES_STATIC)" $(RUN_TESTS_LAUNCH) |
215 |
- TEST_FILES="$(TEST_FILES_GI)" $(RUN_TESTS_LAUNCH) |
216 |
- if BUILD_GIO |
217 |
-diff --git a/tests/runtests.py b/tests/runtests.py |
218 |
-index 2bb8637..4107bcf 100644 |
219 |
---- a/tests/runtests.py |
220 |
-+++ b/tests/runtests.py |
221 |
-@@ -6,6 +6,8 @@ import sys |
222 |
- |
223 |
- import unittest |
224 |
- |
225 |
-+# Some tests fail with translated messages. |
226 |
-+os.environ["LC_ALL"] = "C" |
227 |
- |
228 |
- # force untranslated messages, as we check for them in some tests |
229 |
- os.environ['LC_MESSAGES'] = 'C' |
230 |
--- |
231 |
-1.7.4.1 |
232 |
- |
233 |
|
234 |
diff --git a/dev-python/pygobject/files/pygobject-2.28.3-support_multiple_python_versions.patch b/dev-python/pygobject/files/pygobject-2.28.3-support_multiple_python_versions.patch |
235 |
deleted file mode 100644 |
236 |
index 65d881a..0000000 |
237 |
--- a/dev-python/pygobject/files/pygobject-2.28.3-support_multiple_python_versions.patch |
238 |
+++ /dev/null |
239 |
@@ -1,103 +0,0 @@ |
240 |
-From 2f75378f3c56f245cabdcd2c52b561dbb878db2d Mon Sep 17 00:00:00 2001 |
241 |
-From: Gilles Dartiguelongue <eva@g.o> |
242 |
-Date: Fri, 8 Apr 2011 15:43:39 +0200 |
243 |
-Subject: [PATCH 3/3] Enable support to build against multiple version of python |
244 |
- |
245 |
---- |
246 |
- codegen/pygobject-codegen-2.0.in | 2 +- |
247 |
- gi/Makefile.am | 2 +- |
248 |
- gio/Makefile.am | 2 +- |
249 |
- glib/Makefile.am | 10 +++++----- |
250 |
- gobject/Makefile.am | 2 +- |
251 |
- 5 files changed, 9 insertions(+), 9 deletions(-) |
252 |
- |
253 |
-diff --git a/codegen/pygobject-codegen-2.0.in b/codegen/pygobject-codegen-2.0.in |
254 |
-index c04451b..194e5ba 100644 |
255 |
---- a/codegen/pygobject-codegen-2.0.in |
256 |
-+++ b/codegen/pygobject-codegen-2.0.in |
257 |
-@@ -4,7 +4,7 @@ prefix=@prefix@ |
258 |
- exec_prefix=@exec_prefix@ |
259 |
- datarootdir=@datarootdir@ |
260 |
- datadir=@datadir@ |
261 |
--codegendir=@pyexecdir@/gtk-2.0/codegen |
262 |
-+codegendir=$(@PYTHON@ -c "from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, prefix='@exec_prefix@')")/gtk-2.0/codegen |
263 |
- |
264 |
- PYTHONPATH=$codegendir |
265 |
- export PYTHONPATH |
266 |
-diff --git a/gi/Makefile.am b/gi/Makefile.am |
267 |
-index 31f6c79..8690522 100644 |
268 |
---- a/gi/Makefile.am |
269 |
-+++ b/gi/Makefile.am |
270 |
-@@ -25,7 +25,7 @@ _gi_la_LDFLAGS = \ |
271 |
- -export-symbols-regex "init_gi|PyInit__gi" |
272 |
- _gi_la_LIBADD = \ |
273 |
- $(GI_LIBS) \ |
274 |
-- $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la |
275 |
-+ $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la |
276 |
- _gi_la_SOURCES = \ |
277 |
- pygi-repository.c \ |
278 |
- pygi-repository.h \ |
279 |
-diff --git a/gio/Makefile.am b/gio/Makefile.am |
280 |
-index 6b3eb57..00e1c54 100644 |
281 |
---- a/gio/Makefile.am |
282 |
-+++ b/gio/Makefile.am |
283 |
-@@ -67,7 +67,7 @@ EXTRA_DIST += $(GIO_DEFS) $(GIO_OVERRIDES) |
284 |
- gio.c: $(GIO_DEFS) $(GIO_OVERRIDES) |
285 |
- _gio_la_CFLAGS = $(GIO_CFLAGS) |
286 |
- _gio_la_LDFLAGS = $(common_ldflags) -export-symbols-regex init_gio |
287 |
--_gio_la_LIBADD = $(GIO_LIBS) $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la |
288 |
-+_gio_la_LIBADD = $(GIO_LIBS) $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la |
289 |
- _gio_la_SOURCES = \ |
290 |
- giomodule.c \ |
291 |
- pygio-utils.c \ |
292 |
-diff --git a/glib/Makefile.am b/glib/Makefile.am |
293 |
-index e210318..df39687 100644 |
294 |
---- a/glib/Makefile.am |
295 |
-+++ b/glib/Makefile.am |
296 |
-@@ -4,7 +4,7 @@ INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) -DPY_SSIZE_T_CLEAN |
297 |
- pkgincludedir = $(includedir)/pygtk-2.0 |
298 |
- pkginclude_HEADERS = pyglib.h |
299 |
- |
300 |
--lib_LTLIBRARIES = libpyglib-2.0-@PYTHON_BASENAME@.la |
301 |
-+lib_LTLIBRARIES = libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la |
302 |
- |
303 |
- pkgpyexecdir = $(pyexecdir) |
304 |
- |
305 |
-@@ -19,9 +19,9 @@ if PLATFORM_WIN32 |
306 |
- common_ldflags += -no-undefined |
307 |
- endif |
308 |
- |
309 |
--libpyglib_2_0_@PYTHON_BASENAME@_la_CFLAGS = $(GLIB_CFLAGS) |
310 |
--libpyglib_2_0_@PYTHON_BASENAME@_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS) |
311 |
--libpyglib_2_0_@PYTHON_BASENAME@_la_SOURCES = \ |
312 |
-+libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_CFLAGS = $(GLIB_CFLAGS) |
313 |
-+libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_LIBADD = $(GLIB_LIBS) $(FFI_LIBS) |
314 |
-+libpyglib_2_0_@PYTHON_BASENAME@@PYTHON_VERSION@_la_SOURCES = \ |
315 |
- pyglib.c \ |
316 |
- pyglib.h \ |
317 |
- pyglib-private.h \ |
318 |
-@@ -29,7 +29,7 @@ libpyglib_2_0_@PYTHON_BASENAME@_la_SOURCES = \ |
319 |
- |
320 |
- _glib_la_CFLAGS = $(GLIB_CFLAGS) |
321 |
- _glib_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_glib|PyInit__glib" |
322 |
--_glib_la_LIBADD = $(GLIB_LIBS) libpyglib-2.0-@PYTHON_BASENAME@.la |
323 |
-+_glib_la_LIBADD = $(GLIB_LIBS) libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la |
324 |
- _glib_la_SOURCES = \ |
325 |
- glibmodule.c \ |
326 |
- pygiochannel.c \ |
327 |
-diff --git a/gobject/Makefile.am b/gobject/Makefile.am |
328 |
-index 7208329..3f9ad8e 100644 |
329 |
---- a/gobject/Makefile.am |
330 |
-+++ b/gobject/Makefile.am |
331 |
-@@ -35,7 +35,7 @@ _gobject_la_LDFLAGS = $(common_ldflags) -export-symbols-regex "_gobject|PyInit__ |
332 |
- _gobject_la_LIBADD = \ |
333 |
- $(GLIB_LIBS) \ |
334 |
- $(FFI_LIBS) \ |
335 |
-- $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@.la |
336 |
-+ $(top_builddir)/glib/libpyglib-2.0-@PYTHON_BASENAME@@PYTHON_VERSION@.la |
337 |
- _gobject_la_SOURCES = \ |
338 |
- gobjectmodule.c \ |
339 |
- pygboxed.c \ |
340 |
--- |
341 |
-1.7.4.1 |
342 |
- |
343 |
|
344 |
diff --git a/dev-python/pygobject/pygobject-2.28.4.ebuild b/dev-python/pygobject/pygobject-2.28.4.ebuild |
345 |
deleted file mode 100644 |
346 |
index 0a07449..0000000 |
347 |
--- a/dev-python/pygobject/pygobject-2.28.4.ebuild |
348 |
+++ /dev/null |
349 |
@@ -1,130 +0,0 @@ |
350 |
-# Copyright 1999-2011 Gentoo Foundation |
351 |
-# Distributed under the terms of the GNU General Public License v2 |
352 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pygobject/pygobject-2.26.0-r1.ebuild,v 1.2 2010/12/21 21:48:56 eva Exp $ |
353 |
- |
354 |
-EAPI="3" |
355 |
-GCONF_DEBUG="no" |
356 |
-SUPPORT_PYTHON_ABIS="1" |
357 |
-PYTHON_DEPEND="2:2.6" |
358 |
-# FIXME: Supports Python 3, but needs pycairo-3 support too |
359 |
-RESTRICT_PYTHON_ABIS="2.4 2.5 3.*" |
360 |
- |
361 |
-# XXX: Is the alternatives stuff needed anymore? |
362 |
-inherit alternatives autotools gnome2 python virtualx |
363 |
- |
364 |
-DESCRIPTION="GLib's GObject library bindings for Python" |
365 |
-HOMEPAGE="http://www.pygtk.org/" |
366 |
- |
367 |
-LICENSE="LGPL-2.1" |
368 |
-SLOT="2" |
369 |
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
370 |
-IUSE="doc +cairo examples +introspection libffi test" |
371 |
- |
372 |
-COMMON_DEPEND=">=dev-libs/glib-2.24.0:2 |
373 |
- introspection? ( |
374 |
- >=dev-libs/gobject-introspection-0.10.2 |
375 |
- cairo? ( >=dev-python/pycairo-1.2.0 ) ) |
376 |
- libffi? ( virtual/libffi )" |
377 |
-DEPEND="${COMMON_DEPEND} |
378 |
- doc? ( |
379 |
- dev-libs/libxslt |
380 |
- >=app-text/docbook-xsl-stylesheets-1.70.1 ) |
381 |
- test? ( |
382 |
- media-fonts/font-cursor-misc |
383 |
- media-fonts/font-misc-misc ) |
384 |
- >=dev-util/pkgconfig-0.12" |
385 |
-RDEPEND="${COMMON_DEPEND} |
386 |
- !<dev-python/pygtk-2.13" |
387 |
- |
388 |
-pkg_setup() { |
389 |
- DOCS="AUTHORS ChangeLog* NEWS README" |
390 |
- G2CONF="${G2CONF} |
391 |
- --disable-dependency-tracking |
392 |
- $(use_enable doc docs) |
393 |
- $(use_enable cairo) |
394 |
- $(use_enable introspection) |
395 |
- $(use_with libffi ffi)" |
396 |
-} |
397 |
- |
398 |
-src_prepare() { |
399 |
- gnome2_src_prepare |
400 |
- |
401 |
- # Fix FHS compliance, see upstream bug #535524 |
402 |
- epatch "${FILESDIR}/${PN}-2.28.3-fix-codegen-location.patch" |
403 |
- |
404 |
- # Do not build tests if unneeded, bug #226345 |
405 |
- epatch "${FILESDIR}/${PN}-2.28.3-make_check.patch" |
406 |
- |
407 |
- # Support installation for multiple Python versions |
408 |
- epatch "${FILESDIR}/${PN}-2.28.3-support_multiple_python_versions.patch" |
409 |
- |
410 |
- # Disable tests that fail |
411 |
- epatch "${FILESDIR}/${PN}-2.28.3-disable-failing-tests.patch" |
412 |
- |
413 |
- # disable pyc compiling |
414 |
- ln -sfn $(type -P true) py-compile |
415 |
- |
416 |
- eautoreconf |
417 |
- |
418 |
- python_copy_sources |
419 |
-} |
420 |
- |
421 |
-src_configure() { |
422 |
- python_execute_function -s gnome2_src_configure |
423 |
-} |
424 |
- |
425 |
-src_compile() { |
426 |
- python_execute_function -d -s |
427 |
-} |
428 |
- |
429 |
-# FIXME: With python multiple ABI support, tests return 1 even when they pass |
430 |
-src_test() { |
431 |
- unset DBUS_SESSION_BUS_ADDRESS |
432 |
- |
433 |
- testing() { |
434 |
- XDG_CACHE_HOME="${T}/$(PYTHON --ABI)" |
435 |
- Xemake check PYTHON=$(PYTHON -a) |
436 |
- } |
437 |
- python_execute_function -s testing |
438 |
-} |
439 |
- |
440 |
-src_install() { |
441 |
- [[ -z ${ED} ]] && local ED="${D}" |
442 |
- installation() { |
443 |
- gnome2_src_install |
444 |
- mv "${ED}$(python_get_sitedir)/pygtk.py" "${ED}$(python_get_sitedir)/pygtk.py-2.0" |
445 |
- mv "${ED}$(python_get_sitedir)/pygtk.pth" "${ED}$(python_get_sitedir)/pygtk.pth-2.0" |
446 |
- } |
447 |
- python_execute_function -s installation |
448 |
- |
449 |
- python_clean_installation_image |
450 |
- |
451 |
- sed "s:/usr/bin/python:/usr/bin/python2:" \ |
452 |
- -i "${ED}"/usr/bin/pygobject-codegen-2.0 \ |
453 |
- || die "Fix usage of python interpreter" |
454 |
- |
455 |
- if use examples; then |
456 |
- insinto /usr/share/doc/${P} |
457 |
- doins -r examples || die "doins failed" |
458 |
- fi |
459 |
-} |
460 |
- |
461 |
-pkg_postinst() { |
462 |
- create_symlinks() { |
463 |
- alternatives_auto_makesym "$(python_get_sitedir)/pygtk.py" pygtk.py-[0-9].[0-9] |
464 |
- alternatives_auto_makesym "$(python_get_sitedir)/pygtk.pth" pygtk.pth-[0-9].[0-9] |
465 |
- } |
466 |
- python_execute_function create_symlinks |
467 |
- |
468 |
- python_mod_optimize gtk-2.0 pygtk.py |
469 |
-} |
470 |
- |
471 |
-pkg_postrm() { |
472 |
- python_mod_cleanup gtk-2.0 pygtk.py |
473 |
- |
474 |
- create_symlinks() { |
475 |
- alternatives_auto_makesym "$(python_get_sitedir)/pygtk.py" pygtk.py-[0-9].[0-9] |
476 |
- alternatives_auto_makesym "$(python_get_sitedir)/pygtk.pth" pygtk.pth-[0-9].[0-9] |
477 |
- } |
478 |
- python_execute_function create_symlinks |
479 |
-} |