summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-01-23 08:03:46 +0000
committerTim Harder <radhermit@gentoo.org>2014-01-23 08:03:46 +0000
commit0f205c5af3d56867e151fea103718fc79501ab6c (patch)
tree2e07661dd75927f60dd3318ae79514aa7ddfc4dd /dev-python/cython
parentVersion bump. (diff)
downloadgentoo-2-0f205c5af3d56867e151fea103718fc79501ab6c.tar.gz
gentoo-2-0f205c5af3d56867e151fea103718fc79501ab6c.tar.bz2
gentoo-2-0f205c5af3d56867e151fea103718fc79501ab6c.zip
Version bump.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/ChangeLog9
-rw-r--r--dev-python/cython/cython-0.20.ebuild56
2 files changed, 63 insertions, 2 deletions
diff --git a/dev-python/cython/ChangeLog b/dev-python/cython/ChangeLog
index 317a3ba2b122..b76a1c609309 100644
--- a/dev-python/cython/ChangeLog
+++ b/dev-python/cython/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/cython
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.105 2013/12/07 10:26:12 hattya Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.106 2014/01/23 08:03:46 radhermit Exp $
+
+*cython-0.20 (23 Jan 2014)
+
+ 23 Jan 2014; Tim Harder <radhermit@gentoo.org> +cython-0.20.ebuild:
+ Version bump.
07 Dec 2013; Akinori Hattori <hattya@gentoo.org> cython-0.19.1.ebuild:
ia64 stable
diff --git a/dev-python/cython/cython-0.20.ebuild b/dev-python/cython/cython-0.20.ebuild
new file mode 100644
index 000000000000..43dda72fc2b9
--- /dev/null
+++ b/dev-python/cython/cython-0.20.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.20.ebuild,v 1.1 2014/01/23 08:03:46 radhermit Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
+
+inherit distutils-r1 flag-o-matic
+
+MY_PN="Cython"
+MY_P="${MY_PN}-${PV/_/}"
+
+DESCRIPTION="A Python to C compiler"
+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="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris ~x64-solaris"
+IUSE="doc test"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/numpy[$(python_gen_usedep python{2_6,2_7,3_2,3_3})] )"
+
+S="${WORKDIR}/${MY_PN}-${PV%_*}"
+
+python_compile() {
+ if [[ ${EPYTHON} == python2* ]]; then
+ local CFLAGS CXXFLAGS
+ append-flags -fno-strict-aliasing
+ fi
+
+ # Python gets confused when it is in sys.path before build.
+ local PYTHONPATH
+ export PYTHONPATH
+
+ distutils-r1_python_compile
+}
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
+ || die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+ local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+}