summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-15 02:17:14 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-11-15 02:17:14 +0000
commit40373685b8f75b74410ef15f3cc6b2eefbdeb930 (patch)
tree5463477a13a5a2ba220d12aeaa0c8b711a7fb85d /dev-python
parentVersion bump. (diff)
downloadhistorical-40373685b8f75b74410ef15f3cc6b2eefbdeb930.tar.gz
historical-40373685b8f75b74410ef15f3cc6b2eefbdeb930.tar.bz2
historical-40373685b8f75b74410ef15f3cc6b2eefbdeb930.zip
Fix building with Python 3.1.3 (bug #344823).
Package-Manager: portage-2.2.0_alpha4_p23/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cython/ChangeLog6
-rw-r--r--dev-python/cython/Manifest5
-rw-r--r--dev-python/cython/cython-0.13.ebuild9
-rw-r--r--dev-python/cython/files/cython-0.13-python-3.1.3.patch25
4 files changed, 40 insertions, 5 deletions
diff --git a/dev-python/cython/ChangeLog b/dev-python/cython/ChangeLog
index 629ecdf01e63..c2a2c2eeec16 100644
--- a/dev-python/cython/ChangeLog
+++ b/dev-python/cython/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-python/cython
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.55 2010/11/14 15:11:45 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.56 2010/11/15 02:17:14 arfrever Exp $
+
+ 15 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ cython-0.13.ebuild, +files/cython-0.13-python-3.1.3.patch:
+ Fix building with Python 3.1.3 (bug #344823).
14 Nov 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
-cython-0.12.1.ebuild:
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 778364299227..3733647f6f21 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -1,4 +1,5 @@
+AUX cython-0.13-python-3.1.3.patch 988 RMD160 0f675a4b5936ba70026d84039f5741ecffb19c0e SHA1 eed6cf775c6098679e55a7c19ad526e217e799b3 SHA256 7dc4f13d34835c204dbcf89e7a425f86609bebefecddbc1d8efe1e91c915c727
DIST Cython-0.13.tar.gz 644797 RMD160 4771e9b82371a5923a76badb4123f416b65e773a SHA1 8f17947fa75c03cabe11a8a5a19dc74e27f0d1e2 SHA256 a30d5e26c82ec65d65703c7cf312161a21b30339addc1a42d3b2965dea254ca6
-EBUILD cython-0.13.ebuild 1328 RMD160 db3fba20297cdc2c3d014fc65c9aa62fc68593d4 SHA1 a4545d69872ed93fd7407435db29643874f5ba7b SHA256 51121cd7c0128ec5ee8e21c87ea42dd11106ba04ab2a144727e1cc872c741a10
-MISC ChangeLog 6955 RMD160 80f9690c815f86db64ba190ef19ef8999f7b954f SHA1 8485ff41987d4b1b9568ba2284adbc3fa693176f SHA256 59093dd665054938c5c27649da67f9ddecc05b436ce1be2afdb4f501045f3c75
+EBUILD cython-0.13.ebuild 1422 RMD160 4f29ea0b1523a9cc006f18839779d593c3e4527b SHA1 4d5d74ae96014663a7878559d179bba3b322d69e SHA256 87598d145d3f1afac153b2a81f2a40d7b5a58d0aecf19ed57f145c4a581d8b6c
+MISC ChangeLog 7138 RMD160 43d02f72bcdb025eacf0494e2f73be6447ec375d SHA1 4986f601038b8c06ad793226adb08547b8f7028a SHA256 b73d66165f8ec8ed907f4227f03030f6117c5d5482a079ec9a996e4c41ef48c2
MISC metadata.xml 413 RMD160 d49ca50b2d03d5edf82c4bf1cc3fa5d64e18ff9d SHA1 1bbc08c5c36fd7ed070ea600d3af8a84b1e2d8a9 SHA256 3fa4b401e71b4f60b65f7c53fc40a43a356252e45f5f347c86831e68c8caa465
diff --git a/dev-python/cython/cython-0.13.ebuild b/dev-python/cython/cython-0.13.ebuild
index d6f5b4249b73..3dd6bee84ce3 100644
--- a/dev-python/cython/cython-0.13.ebuild
+++ b/dev-python/cython/cython-0.13.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.13.ebuild,v 1.6 2010/11/09 19:51:49 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.13.ebuild,v 1.7 2010/11/15 02:17:14 arfrever Exp $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
-inherit distutils
+inherit distutils eutils
MY_PN="Cython"
MY_P="${MY_PN}-${PV/_/.}"
@@ -30,6 +30,11 @@ PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
DOCS="ToDo.txt USAGE.txt"
PYTHON_MODNAME="Cython pyximport"
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/${P}-python-3.1.3.patch"
+}
+
src_test() {
testing() {
rm -fr BUILD
diff --git a/dev-python/cython/files/cython-0.13-python-3.1.3.patch b/dev-python/cython/files/cython-0.13-python-3.1.3.patch
new file mode 100644
index 000000000000..19e30bef11e1
--- /dev/null
+++ b/dev-python/cython/files/cython-0.13-python-3.1.3.patch
@@ -0,0 +1,25 @@
+http://hg.cython.org/cython-devel/rev/66db6308e5be
+
+--- setup.py
++++ setup.py
+@@ -106,12 +106,19 @@
+ )
+
+ class build_ext(build_ext_orig):
++ # we must keep the original modules alive to make sure
++ # their code keeps working when we remove them from
++ # sys.modules
++ dead_modules = []
++
+ def build_extensions(self):
+ # add path where 2to3 installed the transformed sources
+ # and make sure Python (re-)imports them from there
+ already_imported = [ module for module in sys.modules
+ if module == 'Cython' or module.startswith('Cython.') ]
++ keep_alive = self.dead_modules.append
+ for module in already_imported:
++ keep_alive(sys.modules[module])
+ del sys.modules[module]
+ sys.path.insert(0, os.path.join(source_root, self.build_lib))
+
+