summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-27 15:59:29 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-27 15:59:29 +0000
commit1b74eba35bfa5330479416c040444df1dca5c805 (patch)
tree77764cac3177611c1acb435ccfd5de0e5491ad5e /dev-python/cython
parentMask net-misc/kssh (diff)
downloadgentoo-2-1b74eba35bfa5330479416c040444df1dca5c805.tar.gz
gentoo-2-1b74eba35bfa5330479416c040444df1dca5c805.tar.bz2
gentoo-2-1b74eba35bfa5330479416c040444df1dca5c805.zip
Version bump (bug #294620).
(Portage version: 14899-svn/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/ChangeLog8
-rw-r--r--dev-python/cython/cython-0.12.ebuild69
-rw-r--r--dev-python/cython/files/cython-0.12-report_test_failures.patch17
3 files changed, 93 insertions, 1 deletions
diff --git a/dev-python/cython/ChangeLog b/dev-python/cython/ChangeLog
index 1f99cb24ecb9..1e08aaa98bd9 100644
--- a/dev-python/cython/ChangeLog
+++ b/dev-python/cython/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/cython
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.34 2009/11/21 00:48:02 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.35 2009/11/27 15:59:28 arfrever Exp $
+
+*cython-0.12 (27 Nov 2009)
+
+ 27 Nov 2009; Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>
+ +cython-0.12.ebuild, +files/cython-0.12-report_test_failures.patch:
+ Version bump (bug #294620).
*cython-0.12_rc1 (21 Nov 2009)
diff --git a/dev-python/cython/cython-0.12.ebuild b/dev-python/cython/cython-0.12.ebuild
new file mode 100644
index 000000000000..12b04ea5b011
--- /dev/null
+++ b/dev-python/cython/cython-0.12.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.12.ebuild,v 1.1 2009/11/27 15:59:28 arfrever Exp $
+
+EAPI="2"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils flag-o-matic
+
+MY_PN="Cython"
+MY_P="${MY_PN}-${PV/_/.}"
+
+DESCRIPTION="A language for writing Python extension modules based on pyrex"
+HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
+SRC_URI="http://pypi.python.org/packages/source/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz
+ http://www.cython.org/release/${MY_P}.tar.gz"
+
+LICENSE="PSF-2.4"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="doc examples"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_MODNAME="${MY_PN} pyximport"
+DOCS="ToDo.txt USAGE.txt"
+
+pkg_setup() {
+ if use amd64; then
+ # Tests fail with some optimizations.
+ replace-flags -O[2-9s]* -O1
+ fi
+}
+
+src_prepare() {
+ distutils_src_prepare
+
+ epatch "${FILESDIR}/${P}-report_test_failures.patch"
+}
+
+src_test() {
+ testing() {
+ # Tests fail with Python 3 due to bug in Python.
+ # http://bugs.python.org/issue7173
+ [[ "${PYTHON_ABI}" == 3.* ]] && return
+
+ rm -fr BUILD
+ # Tests sometimes hang with forking enabled.
+ "$(PYTHON)" runtests.py --no-fork -vv
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ # '-A c' is for ignoring of Doc/primes.c.
+ use doc && dohtml -A c -r Doc/*
+
+ if use examples; then
+ # Demos/ has files with .so,~ suffixes.
+ # So we have to specify precisely what to install.
+ insinto /usr/share/doc/${PF}/examples
+ doins Demos/Makefile* Demos/setup.py Demos/*.{py,pyx}
+ fi
+}
diff --git a/dev-python/cython/files/cython-0.12-report_test_failures.patch b/dev-python/cython/files/cython-0.12-report_test_failures.patch
new file mode 100644
index 000000000000..07e000b899d1
--- /dev/null
+++ b/dev-python/cython/files/cython-0.12-report_test_failures.patch
@@ -0,0 +1,17 @@
+--- runtests.py
++++ runtests.py
+@@ -856,7 +856,7 @@
+ os.path.join(sys.prefix, 'lib', 'python'+sys.version[:3], 'test'),
+ 'pyregr'))
+
+- unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite)
++ result = unittest.TextTestRunner(verbosity=options.verbosity).run(test_suite)
+
+ if options.coverage:
+ coverage.stop()
+@@ -875,3 +875,5 @@
+ if options.with_refnanny:
+ import refnanny
+ sys.stderr.write("\n".join([repr(x) for x in refnanny.reflog]))
++
++ sys.exit(not result.wasSuccessful())