summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <bicatali@gentoo.org>2011-12-17 06:30:50 +0000
committerSebastien Fabbro <bicatali@gentoo.org>2011-12-17 06:30:50 +0000
commit62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4 (patch)
treeecd347791d183e34b0d39269c9ce42082bde770c /dev-python
parentAdded gtk3, sse2 flags. Removed gtksourceview flag, mandatory dependency when... (diff)
downloadhistorical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.tar.gz
historical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.tar.bz2
historical-62f1cb28cd48e1f90a0d21e09b3f0151b5a22fd4.zip
Bump. Patch for test submitted by Ian Delanay, bug #393679
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/cython/ChangeLog8
-rw-r--r--dev-python/cython/Manifest17
-rw-r--r--dev-python/cython/cython-0.15.1.ebuild56
-rw-r--r--dev-python/cython/files/0.15.1-test.patch56
-rw-r--r--dev-python/cython/metadata.xml3
5 files changed, 132 insertions, 8 deletions
diff --git a/dev-python/cython/ChangeLog b/dev-python/cython/ChangeLog
index fe1904bc66bd..a4bf688a5cf1 100644
--- a/dev-python/cython/ChangeLog
+++ b/dev-python/cython/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/cython
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.70 2011/07/08 07:30:21 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.71 2011/12/17 06:30:50 bicatali Exp $
+
+*cython-0.15.1 (17 Dec 2011)
+
+ 17 Dec 2011; SĂ©bastien Fabbro <bicatali@gentoo.org>
+ +files/0.15.1-test.patch, +cython-0.15.1.ebuild:
+ Bump. Patch for test submitted by Ian Delanay, bug #393679
08 Jul 2011; Dirkjan Ochtman <djc@gentoo.org> Manifest:
Update manifest to match new tarball (bug 361579).
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 533d38f10754..62f8d3393d47 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -1,14 +1,17 @@
-----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
+Hash: SHA1
+AUX 0.15.1-test.patch 2334 RMD160 1b3555d71aeebeb7320444711a023b2469b11c98 SHA1 6776a56b9f7b3e7b649a3189d1e5437a51b8ea6f SHA256 c8e0ddbba1166d367dbfd26cfc870cff2aac329eba9474481863408ea3259bd1
DIST Cython-0.14.1.tar.gz 1315824 RMD160 2df38d0fcbd653ef2ae7f56d21004c781029ec16 SHA1 2edc619bea5636fdc265d21112cd4a3654132603 SHA256 89e3f64ea0f97cd29b28d0831a7022dc1f8cf4ffb7be52b9f2fc4b5dcf9243c7
+DIST Cython-0.15.1.tar.gz 1796536 RMD160 b4cb5863b156d114f5ca81cedb3ad291bcdf7e65 SHA1 c70dc772785077a13f7521ac5921753246eccd72 SHA256 248123f2f02f2701a28d9452132ac835533b396a273cda9d361cb65c26067edc
EBUILD cython-0.14.1.ebuild 1351 RMD160 c78a43abfebb634c770e04861808117a6a636191 SHA1 c9f8846f89c27881e9c3aad45c468f4f502c18ef SHA256 10ddee6f3534c0754e2a887c7ae2c50d3c51755e3329b0493b94df0d0f3aa8b7
-MISC ChangeLog 9306 RMD160 4977052543bda38d993e3817bd1ce5107da8d483 SHA1 b7d222d77549125ea86dd07e4c3112eb362c7f2a SHA256 029a0768146e110c60b23f9ae80e980de339d197f94f10ed73e0c3c177407945
-MISC metadata.xml 413 RMD160 d49ca50b2d03d5edf82c4bf1cc3fa5d64e18ff9d SHA1 1bbc08c5c36fd7ed070ea600d3af8a84b1e2d8a9 SHA256 3fa4b401e71b4f60b65f7c53fc40a43a356252e45f5f347c86831e68c8caa465
+EBUILD cython-0.15.1.ebuild 1462 RMD160 697bb283b977f5db2307274da3141b066197a71b SHA1 bb6d906e29ac22574b083fdeb2ccd0efab49c574 SHA256 51bb09cfbeaa19caa099a1e2a4c2c1f137da6f8b68d27c2c71a5ad6b7eb0eb8c
+MISC ChangeLog 9509 RMD160 20849e3024ae296412c5d6bcef871fc9395cf19b SHA1 d000ddba116ade2caa605027f1f3773ea03448b0 SHA256 25840d3a2207e22f37ca1eff288c37e607644b9420ee27c9636f70b4dbaa9b16
+MISC metadata.xml 507 RMD160 09abac2976d2b6cf8a994bf08e1717e3361f8c59 SHA1 43c1c52ea9653fbea29ee53f5f85e27c62e4bf7d SHA256 0756ee0b23317a871b1fa05f5a8fb86d39ca0820cee63ded86551f8b76cb7406
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.17 (GNU/Linux)
+Version: GnuPG v2.0.18 (GNU/Linux)
-iEYEAREKAAYFAk4WshUACgkQxeMuLWsGW/thWACfW+yxMYieIFXCMAbz8LcSY07w
-A9YAniWFZQoPgOYQsfA/198GH5AbNKUf
-=JRQq
+iEYEARECAAYFAk7sNyIACgkQ1ycZbhPLE2AjSgCdHLT2NBDuVICS7NNMhWBBf37g
+DpoAoKR2LSjngfcoOVP6l9TXZI/ZEWom
+=Ghr3
-----END PGP SIGNATURE-----
diff --git a/dev-python/cython/cython-0.15.1.ebuild b/dev-python/cython/cython-0.15.1.ebuild
new file mode 100644
index 000000000000..536d3cafa334
--- /dev/null
+++ b/dev-python/cython/cython-0.15.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.15.1.ebuild,v 1.1 2011/12/17 06:30:50 bicatali Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython *-pypy"
+
+inherit distutils
+
+MY_PN="Cython"
+MY_P="${MY_PN}-${PV/_/}"
+
+DESCRIPTION="Compiler for writing C extensions for the Python language"
+HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
+SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="doc examples numpy"
+
+DEPEND="numpy? ( dev-python/numpy )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV%_*}"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+DOCS="README.txt ToDo.txt USAGE.txt"
+PYTHON_MODNAME="Cython cython.py pyximport"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-test.patch
+}
+
+src_test() {
+ testing() {
+ "$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+
+ if use doc; then
+ # "-A c" is for ignoring of "Doc/primes.c".
+ dohtml -A c -r Doc/* || die "Installation of documentation failed"
+ fi
+
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins -r Demos/* || die "Installation of examples failed"
+ fi
+}
diff --git a/dev-python/cython/files/0.15.1-test.patch b/dev-python/cython/files/0.15.1-test.patch
new file mode 100644
index 000000000000..6391a39bd337
--- /dev/null
+++ b/dev-python/cython/files/0.15.1-test.patch
@@ -0,0 +1,56 @@
+diff -ur Cython-0.15.1.orig/tests/run/numpy_test.pyx Cython-0.15.1/tests/run/numpy_test.pyx
+--- tests/run/numpy_test.pyx 2011-09-20 11:57:45.000000000 +0800
++++ tests/run/numpy_test.pyx 2011-12-10 05:07:32.155836575 +0800
+@@ -211,29 +211,6 @@
+
+ """
+
+- if np.__version__ >= '1.6':
+- __doc__ += u"""
+- The following expose bugs in Numpy (versions prior to 2011-04-02):
+-
+- >>> print(test_partially_packed_align(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('sub', np.dtype('b,i')), ('c', 'i')], align=True))))
+- array([(22, 23, (24, 25), 26)],
+- dtype=[('a', '|i1'), ('', '|V3'), ('b', '!i4'), ('sub', [('f0', '|i1'), ('f1', '!i4')]), ('', '|V3'), ('c', '!i4')])
+-
+- >>> print(test_partially_packed_align_2(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('c', 'b'), ('sub', np.dtype('b,i', align=True))]))))
+- array([(22, 23, 24, (27, 28))],
+- dtype=[('a', '|i1'), ('b', '!i4'), ('c', '|i1'), ('sub', [('f0', '|i1'), ('', '|V3'), ('f1', '!i4')])])
+-
+- >>> print(test_partially_packed_align(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('sub', np.dtype('b,i')), ('c', 'i')], align=False)))) #doctest: +ELLIPSIS
+- Traceback (most recent call last):
+- ...
+- ValueError: ...
+-
+- >>> print(test_partially_packed_align_2(np.zeros((1,), dtype=np.dtype([('a', 'b'), ('b', 'i'), ('c', 'b'), ('sub', np.dtype('b,i', align=False))])))) #doctest: +ELLIPSIS
+- Traceback (most recent call last):
+- ...
+- ValueError: ...
+- """
+-
+ except:
+ __doc__ = u""
+
+@@ -448,22 +425,6 @@
+ arr[0].b = 23
+ return repr(arr).replace('<', '!').replace('>', '!')
+
+-def test_partially_packed_align(np.ndarray[PartiallyPackedStruct] arr):
+- arr[0].a = 22
+- arr[0].b = 23
+- arr[0].sub.a = 24
+- arr[0].sub.b = 25
+- arr[0].c = 26
+- return repr(arr).replace('<', '!').replace('>', '!')
+-
+-def test_partially_packed_align_2(np.ndarray[PartiallyPackedStruct2] arr):
+- arr[0].a = 22
+- arr[0].b = 23
+- arr[0].c = 24
+- arr[0].sub.a = 27
+- arr[0].sub.b = 28
+- return repr(arr).replace('<', '!').replace('>', '!')
+-
+ def test_complextypes():
+ cdef np.complex64_t x64 = 1, y64 = 1j
+ cdef np.complex128_t x128 = 1, y128 = 1j
diff --git a/dev-python/cython/metadata.xml b/dev-python/cython/metadata.xml
index 41e10f103ab2..22f134462516 100644
--- a/dev-python/cython/metadata.xml
+++ b/dev-python/cython/metadata.xml
@@ -7,4 +7,7 @@
language as easy as Python itself. It's based on Pyrex, but supports
more cutting edge functionality and optimizations.
</longdescription>
+ <use>
+ <flag name='numpy'>Enable support for <pkg>dev-python/numpy</pkg></flag>
+ </use>
</pkgmetadata>