1 |
commit: 72770f61fa2074831d66f090f54a133be59843d8 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 27 05:33:22 2016 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 27 05:34:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72770f61 |
7 |
|
8 |
dev-python/cython: version bump to 0.25 |
9 |
|
10 |
dev-python/cython/Manifest | 1 + |
11 |
dev-python/cython/cython-0.25.ebuild | 81 ++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 82 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
15 |
index 86519f0..fee881c 100644 |
16 |
--- a/dev-python/cython/Manifest |
17 |
+++ b/dev-python/cython/Manifest |
18 |
@@ -5,3 +5,4 @@ DIST Cython-0.23.4.tar.gz 1628326 SHA256 fec42fecee35d6cc02887f1eef4e4952c97402e |
19 |
DIST Cython-0.23.5.tar.gz 1629433 SHA256 0ae5a5451a190e03ee36922c4189ca2c88d1df40a89b4f224bc842d388a0d1b6 SHA512 9052d74bbd0c93757fd916939cc3c39eb1aba6c9692b48887ae577256bec64b39b1fd25b6c751e6c8fe723de4c0ddf9a1a207de39f75b0839500dfcdde69f925 WHIRLPOOL 65456464ee8484de7277b6a657938972d9d81addcfe7751f1de287d6c4429531bbc3fcd0788911cbdc5ef752bfef0d43f930bd6651e124b2a33426c092c34292 |
20 |
DIST Cython-0.24.1.tar.gz 1703756 SHA256 84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9 SHA512 c5a3e884edd782c47c81aef29708035bbcd1c14d17e005668da8a4e26fdbba9af9ec283fd46ceaa2cab6fc4ec0d42f7d409832d7cc0a3ec00e84b968b1bf27ea WHIRLPOOL 14224a56c5a6f5cd3f389225c440c65b30a5d1b92c63587c4e9af258b23b1bed1c01330830931c5aba596649d19b0aafd0e559aed5ad7b577a59417463fc3b4a |
21 |
DIST Cython-0.24.tar.gz 1671837 SHA256 6de44d8c482128efc12334641347a9c3e5098d807dd3c69e867fa8f84ec2a3f1 SHA512 9ac22934a4f344b02246538d8317cbecc66236e9c84d782f8121ef2e2c100de2a21cbfb55de3defcab294c71847467870e56fdb5bc38c0db0de7acd560d16e96 WHIRLPOOL 2656fcaa9520ba1de43d8e4e8d9e4d63c30fd62e34746f69c12ac19140faf48a00c98d7f50ce9b065167290d17b25e23c09889c6ab6241c97cd59970e1f09e7d |
22 |
+DIST Cython-0.25.tar.gz 1701330 SHA256 c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b SHA512 eafe71e4572a23ac1fb2a1461d41257eabe945036ae676f8ac1307262298eaadcd2b252bb7aa9fa061dfb1e076898e52f31fd392b5d7a90f0e766f98f9fa3f78 WHIRLPOOL 6920cb6c8fdc89bdc95a49df8fec4e899684423b92424c20fa7344bbed71130682c0e0656be00f16731f0097e04bab4a4a562bc1ead1e4a5874ae5eae5eb2de5 |
23 |
|
24 |
diff --git a/dev-python/cython/cython-0.25.ebuild b/dev-python/cython/cython-0.25.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..4478531 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cython/cython-0.25.ebuild |
29 |
@@ -0,0 +1,81 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 flag-o-matic toolchain-funcs elisp-common |
40 |
+ |
41 |
+MY_PN="Cython" |
42 |
+MY_P="${MY_PN}-${PV/_/}" |
43 |
+ |
44 |
+DESCRIPTION="A Python to C compiler" |
45 |
+HOMEPAGE="http://cython.org https://pypi.python.org/pypi/Cython" |
46 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="Apache-2.0" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~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 ~x64-solaris ~x86-solaris" |
51 |
+ |
52 |
+IUSE="doc emacs test" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ emacs? ( virtual/emacs ) |
56 |
+" |
57 |
+# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs |
58 |
+# spanning several packages. This bug has been fixed in the recent release of version 9.1 |
59 |
+DEPEND="${RDEPEND} |
60 |
+ >=dev-python/setuptools-9.1[${PYTHON_USEDEP}] |
61 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
62 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
63 |
+ |
64 |
+SITEFILE=50cython-gentoo.el |
65 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
66 |
+ |
67 |
+python_compile() { |
68 |
+ if ! python_is_python3; then |
69 |
+ local CFLAGS="${CFLAGS}" |
70 |
+ local CXXFLAGS="${CXXFLAGS}" |
71 |
+ append-flags -fno-strict-aliasing |
72 |
+ fi |
73 |
+ |
74 |
+ # Python gets confused when it is in sys.path before build. |
75 |
+ local PYTHONPATH= |
76 |
+ export PYTHONPATH |
77 |
+ |
78 |
+ distutils-r1_python_compile |
79 |
+} |
80 |
+ |
81 |
+python_compile_all() { |
82 |
+ use emacs && elisp-compile Tools/cython-mode.el |
83 |
+ |
84 |
+ use doc && unset XDG_CONFIG_HOME && emake -C docs html |
85 |
+} |
86 |
+ |
87 |
+python_test() { |
88 |
+ tc-export CC |
89 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
90 |
+ || die "Tests fail with ${EPYTHON}" |
91 |
+} |
92 |
+ |
93 |
+python_install_all() { |
94 |
+ local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt ) |
95 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
96 |
+ distutils-r1_python_install_all |
97 |
+ |
98 |
+ if use emacs; then |
99 |
+ elisp-install ${PN} Tools/cython-mode.* |
100 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
101 |
+ fi |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ use emacs && elisp-site-regen |
106 |
+} |
107 |
+ |
108 |
+pkg_postrm() { |
109 |
+ use emacs && elisp-site-regen |
110 |
+} |