diff options
author | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-06-17 19:50:17 +0000 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> | 2010-06-17 19:50:17 +0000 |
commit | a3a95c9776355438c1ef5cf47f45ddf990e4065f (patch) | |
tree | c1e2779b1fbbc81a396e0f03dfb2e3d0bc325f14 /dev-python/gmpy | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-a3a95c9776355438c1ef5cf47f45ddf990e4065f.tar.gz gentoo-2-a3a95c9776355438c1ef5cf47f45ddf990e4065f.tar.bz2 gentoo-2-a3a95c9776355438c1ef5cf47f45ddf990e4065f.zip |
Fix tests with Python >=3.1.2:3.1 (bug #320799).
(Portage version: HEAD/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/gmpy')
-rw-r--r-- | dev-python/gmpy/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/gmpy/files/gmpy-1.11-tests.patch | 32 | ||||
-rw-r--r-- | dev-python/gmpy/gmpy-1.11.ebuild | 6 |
3 files changed, 41 insertions, 3 deletions
diff --git a/dev-python/gmpy/ChangeLog b/dev-python/gmpy/ChangeLog index 75d8fc65df79..08ad138345ef 100644 --- a/dev-python/gmpy/ChangeLog +++ b/dev-python/gmpy/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/gmpy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.14 2010/04/08 23:34:30 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/ChangeLog,v 1.15 2010/06/17 19:50:17 arfrever Exp $ + + 17 Jun 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> + gmpy-1.11.ebuild, +files/gmpy-1.11-tests.patch: + Fix tests with Python >=3.1.2:3.1 (bug #320799). 08 Apr 2010; Markos Chandras <hwoarang@gentoo.org> gmpy-1.11.ebuild: Stable on amd64 wrt bug #309399 diff --git a/dev-python/gmpy/files/gmpy-1.11-tests.patch b/dev-python/gmpy/files/gmpy-1.11-tests.patch new file mode 100644 index 000000000000..c8c69ae2c006 --- /dev/null +++ b/dev-python/gmpy/files/gmpy-1.11-tests.patch @@ -0,0 +1,32 @@ +http://code.google.com/p/gmpy/source/detail?r=251 + +--- test3/gmpy_test_mpf.py ++++ test3/gmpy_test_mpf.py +@@ -419,6 +419,7 @@ + + sav = sys.stdout + class _Dummy: ++ encoding = None + def write(self,*whatever): + pass + try: +--- test3/gmpy_test_mpq.py ++++ test3/gmpy_test_mpq.py +@@ -359,6 +359,7 @@ + + sav = sys.stdout + class _Dummy: ++ encoding = None + def write(self,*whatever): + pass + try: +--- test3/gmpy_test_mpz.py ++++ test3/gmpy_test_mpz.py +@@ -967,6 +967,7 @@ + + sav = sys.stdout + class _Dummy: ++ encoding = None + def write(self,*whatever): + pass + try: diff --git a/dev-python/gmpy/gmpy-1.11.ebuild b/dev-python/gmpy/gmpy-1.11.ebuild index ef85e4e35c22..f01b4e4069eb 100644 --- a/dev-python/gmpy/gmpy-1.11.ebuild +++ b/dev-python/gmpy/gmpy-1.11.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/gmpy/gmpy-1.11.ebuild,v 1.3 2010/04/08 23:34:30 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/gmpy/gmpy-1.11.ebuild,v 1.4 2010/06/17 19:50:17 arfrever Exp $ EAPI="2" SUPPORT_PYTHON_ABIS="1" -inherit distutils +inherit distutils eutils DESCRIPTION="Python bindings for dev-libs/gmp" HOMEPAGE="http://www.aleax.it/gmpy.html http://code.google.com/p/gmpy/" @@ -21,6 +21,8 @@ DEPEND="${RDEPEND} app-arch/unzip" src_prepare() { + epatch "${FILESDIR}/${P}-tests.patch" + # HACK: distutils only support 'setup.py', so # we symlink what we need to 'setup.py' later mv setup.py setmp.py |