Permalink
Browse files

dev-python/cython: sync with portage

  • Loading branch information...
1 parent c2b7906 commit 0c72da9f670c4911aa74e3e16ac1fd9e6e955a29 @strohel committed Aug 12, 2012
Showing with 11 additions and 10 deletions.
  1. +11 −10 dev-python/cython/cython-9999.ebuild
@@ -1,41 +1,42 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
inherit distutils git-2
-DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
+DESCRIPTION="Compiler for writing C extensions for the Python language"
HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
EGIT_REPO_URI="git://github.com/cython/cython.git"
-LICENSE="PSF-2.4"
+LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS=""
-IUSE="doc examples"
+IUSE="doc examples numpy"
-DEPEND=""
-RDEPEND=""
+DEPEND="numpy? ( >=dev-python/numpy-1.6.1-r1 )"
+RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
-DOCS="ToDo.txt USAGE.txt"
-PYTHON_MODNAME="Cython pyximport"
+DOCS="README.txt ToDo.txt USAGE.txt"
+PYTHON_MODNAME="Cython cython.py pyximport"
src_test() {
testing() {
- rm -fr BUILD
- "$(PYTHON)" runtests.py -vv
+ "$(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".

0 comments on commit 0c72da9

Please sign in to comment.