summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2012-03-31 19:13:10 +0000
committerMike Gilbert <floppym@gentoo.org>2012-03-31 19:13:10 +0000
commit90a668c5862029fc9a1f4fa26288220fca4ba388 (patch)
tree1c9fc61a906157123e78cb36147c9e5c007ccdab /dev-python/cython
parentStable for X86/AMD64, wrt bug #410265 (diff)
downloadgentoo-2-90a668c5862029fc9a1f4fa26288220fca4ba388.tar.gz
gentoo-2-90a668c5862029fc9a1f4fa26288220fca4ba388.tar.bz2
gentoo-2-90a668c5862029fc9a1f4fa26288220fca4ba388.zip
Make cython wrapper respect EPYTHON. Ported from Progress.
(Portage version: 2.2.0_alpha96/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/ChangeLog9
-rw-r--r--dev-python/cython/cython-0.14.1-r1.ebuild53
-rw-r--r--dev-python/cython/cython-0.15.1-r1.ebuild57
3 files changed, 118 insertions, 1 deletions
diff --git a/dev-python/cython/ChangeLog b/dev-python/cython/ChangeLog
index 6255fa0d5129..0b87354603c0 100644
--- a/dev-python/cython/ChangeLog
+++ b/dev-python/cython/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/cython
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.74 2012/02/20 10:04:45 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.75 2012/03/31 19:13:10 floppym Exp $
+
+*cython-0.15.1-r1 (31 Mar 2012)
+*cython-0.14.1-r1 (31 Mar 2012)
+
+ 31 Mar 2012; Mike Gilbert <floppym@gentoo.org> +cython-0.14.1-r1.ebuild,
+ +cython-0.15.1-r1.ebuild:
+ Make cython wrapper respect EPYTHON. Ported from Progress.
20 Feb 2012; Patrick Lauer <patrick@gentoo.org> cython-0.14.1.ebuild,
cython-0.15.1.ebuild:
diff --git a/dev-python/cython/cython-0.14.1-r1.ebuild b/dev-python/cython/cython-0.14.1-r1.ebuild
new file mode 100644
index 000000000000..788c7cf524e5
--- /dev/null
+++ b/dev-python/cython/cython-0.14.1-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
+
+inherit distutils
+
+MY_PN="Cython"
+MY_P="${MY_PN}-${PV/_/}"
+
+DESCRIPTION="The Cython 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"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
+
+DOCS="README.txt ToDo.txt USAGE.txt"
+PYTHON_MODNAME="Cython cython.py pyximport"
+
+src_test() {
+ testing() {
+ "$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
+ }
+ python_execute_function testing
+}
+
+src_install() {
+ distutils_src_install
+ python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
+
+ 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/cython-0.15.1-r1.ebuild b/dev-python/cython/cython-0.15.1-r1.ebuild
new file mode 100644
index 000000000000..1481c32aa83b
--- /dev/null
+++ b/dev-python/cython/cython-0.15.1-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2012 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-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
+
+inherit distutils eutils
+
+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-1.6.1-r1 )"
+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
+ python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
+
+ 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
+}