1 |
commit: 4d6d9fcb398a11b91887f543164ce1a9add09546 |
2 |
Author: Tim Harder <radhermit <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 31 23:45:57 2017 +0000 |
4 |
Commit: Tim Harder <radhermit <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 31 23:51:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d6d9fcb |
7 |
|
8 |
dev-python/cython: version bump to 0.26.1 |
9 |
|
10 |
dev-python/cython/Manifest | 1 + |
11 |
dev-python/cython/cython-0.26.1.ebuild | 80 ++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 81 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
15 |
index 16fa894aeae..7d2bc547267 100644 |
16 |
--- a/dev-python/cython/Manifest |
17 |
+++ b/dev-python/cython/Manifest |
18 |
@@ -1,4 +1,5 @@ |
19 |
DIST Cython-0.22.tar.gz 1584483 SHA256 14307e7a69af9a0d0e0024d446af7e51cc0e3e4d0dfb10d36ba837e5e5844015 SHA512 856220fa579e272ac38dcef091760f527431ff3b98df9af6e68416fcf77d9659ac5abe5c7dee41331f359614637a4ff452033085335ee499830ed126ab584267 WHIRLPOOL d9919e1fe33f7ea02833c485e10667d8470d7c69901b2419c6c4c1d464f9ef2444795e14903cc66b6fee40ec5a4c20308c331ad93fd8818f207d0a21cccf9b2b |
20 |
DIST Cython-0.24.1.tar.gz 1703756 SHA256 84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9 SHA512 c5a3e884edd782c47c81aef29708035bbcd1c14d17e005668da8a4e26fdbba9af9ec283fd46ceaa2cab6fc4ec0d42f7d409832d7cc0a3ec00e84b968b1bf27ea WHIRLPOOL 14224a56c5a6f5cd3f389225c440c65b30a5d1b92c63587c4e9af258b23b1bed1c01330830931c5aba596649d19b0aafd0e559aed5ad7b577a59417463fc3b4a |
21 |
DIST Cython-0.25.2.tar.gz 1703315 SHA256 f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306 SHA512 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1 WHIRLPOOL bb12d06fddb30d99527e3a62e8788b7aee92787aec9c46e927658f7ee60c8f3e32acb34b2deee1d0cf6ece7f4b06288008082ac609b8cb4b101a1348b1017865 |
22 |
+DIST Cython-0.26.1.tar.gz 1725133 SHA256 c2e63c4794161135adafa8aa4a855d6068073f421c83ffacc39369497a189dd5 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948 WHIRLPOOL 1ef093c41f06249ee4fc40ae39078f20ae14b80b6a9dca382dfa9198a600928ddd0bc20fc42ec398b041b5f97c3c78003725467b26b9cc3a8b68405a288f0f87 |
23 |
DIST Cython-0.26.tar.gz 1692039 SHA256 4c24e2c22ddaed624d35229dc5db25049e9e225c6f64f3364326836cad8f2c66 SHA512 58b7dbdca3b1bdfcb8b968cb1b59826b793656bb7f1203a80b59b3fae2d3174cc99f19f88fc2ec175aa98c9daeca0eb3c52674a7889ba1e914fd20d19ef92aed WHIRLPOOL 650a7db807afb11403b4850d6ec387cd5fdc528bf854f2eb4ec5b804a3b142895cbaf085fe82563374f586090e4cf5a40def6e1d410a8bea85cfa7003c44efe0 |
24 |
|
25 |
diff --git a/dev-python/cython/cython-0.26.1.ebuild b/dev-python/cython/cython-0.26.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..7599fb5e7e1 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/cython/cython-0.26.1.ebuild |
30 |
@@ -0,0 +1,80 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
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 ~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 |
+} |