1 |
commit: 9259ad9bdd0876d7b3fac486bf8d6f5bfde7ce59 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 11 10:44:30 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 11 11:24:29 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9259ad9b |
7 |
|
8 |
dev-python/cython: Add python3.5 support |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
dev-python/cython/cython-0.23.3-r1.ebuild | 62 +++++++++++++++++++++++++++++++ |
14 |
1 file changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/cython-0.23.3-r1.ebuild b/dev-python/cython/cython-0.23.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 0000000..1a85940 |
19 |
--- /dev/null |
20 |
+++ b/dev-python/cython/cython-0.23.3-r1.ebuild |
21 |
@@ -0,0 +1,62 @@ |
22 |
+# Copyright 1999-2015 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Id$ |
25 |
+ |
26 |
+EAPI=5 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
29 |
+ |
30 |
+inherit distutils-r1 flag-o-matic toolchain-funcs |
31 |
+ |
32 |
+MY_PN="Cython" |
33 |
+MY_P="${MY_PN}-${PV/_/}" |
34 |
+ |
35 |
+DESCRIPTION="A Python to C compiler" |
36 |
+HOMEPAGE="http://www.cython.org/ https://pypi.python.org/pypi/Cython" |
37 |
+SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz" |
38 |
+ |
39 |
+LICENSE="Apache-2.0" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
42 |
+IUSE="doc examples test" |
43 |
+ |
44 |
+RDEPEND="" |
45 |
+# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs |
46 |
+# spanning several packages. This bug has been fixed in the recent release of version 9.1 |
47 |
+DEPEND="${RDEPEND} |
48 |
+ >=dev-python/setuptools-9.1[${PYTHON_USEDEP}] |
49 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
50 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
51 |
+ |
52 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
53 |
+ |
54 |
+python_compile() { |
55 |
+ if ! python_is_python3; then |
56 |
+ local CFLAGS="${CFLAGS}" |
57 |
+ local CXXFLAGS="${CXXFLAGS}" |
58 |
+ append-flags -fno-strict-aliasing |
59 |
+ fi |
60 |
+ |
61 |
+ # Python gets confused when it is in sys.path before build. |
62 |
+ local PYTHONPATH= |
63 |
+ export PYTHONPATH |
64 |
+ |
65 |
+ distutils-r1_python_compile |
66 |
+} |
67 |
+ |
68 |
+python_compile_all() { |
69 |
+ use doc && unset XDG_CONFIG_HOME && emake -C docs html |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ tc-export CC |
74 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
75 |
+ || die "Tests fail with ${EPYTHON}" |
76 |
+} |
77 |
+ |
78 |
+python_install_all() { |
79 |
+ local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt ) |
80 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
81 |
+ use examples && local EXAMPLES=( Demos/. ) |
82 |
+ distutils-r1_python_install_all |
83 |
+} |