1 |
commit: 1b3b82dbfcb0e5a7b307ade4c0e996c81e4614ea |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jun 3 02:14:19 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jun 3 02:21:53 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b3b82db |
7 |
|
8 |
dev-python/cython: Bump to 0.29.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/cython/Manifest | 1 + |
13 |
dev-python/cython/cython-0.29.10.ebuild | 86 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 87 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index 5f666eea1b5..bf50a62aa4c 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -1,6 +1,7 @@ |
21 |
DIST Cython-0.25.2.tar.gz 1703315 BLAKE2B e458604d0843afa128c6019244220bd6b3dd6653013698aa67ee2f71555f09813a8136ef92d6dc51ca38fe085e7bedc5e01d1a32bbd0885e62bd91c2e482bebd SHA512 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1 |
22 |
DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326015ff320d8cd61818e5eb5fb4daf73ad4e72760d84f4cdaa2386b87d719cf9cd41584b781d4e2021e377a58422 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948 |
23 |
DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29 |
24 |
+DIST Cython-0.29.10.tar.gz 2049468 BLAKE2B 1cfae1c5e2d7277d3ac25ab0ff5a7b4346242e6c01d0b7945491f4fb64e0c9b98c593efa41b790aa0437ae72275a0ba3b6fe8614c7efaadc6139823f0e453d71 SHA512 df8430bb89816df84abfc6d59bee8e50f4117e8e82b9c82a889afca390a42a1569a9b5dcde76f40e7c29d728489af34c6fe0cf359912f7b74ac0d014af2171c3 |
25 |
DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc |
26 |
DIST Cython-0.29.7.tar.gz 2047944 BLAKE2B 79a2dbbbeef2c87e523d1222c1e3b62a63273644a0295a08fed3909ef01f2167baf15c0344a64ec168820e21c5c99b0accc083c8dfcaca7f1c0cb8c4b23677cc SHA512 1c2fd2185d65445318118d917ff6f8b4b958b0a036bc3ce1587dcb8fa94ccc750901cece27e4d0d39c53db68c3a620edf2dcf9424d7a6df58a0275097b90fa6e |
27 |
DIST Cython-0.29.9.tar.gz 2049206 BLAKE2B d81cc4be6d99e8be025167700517880c3250feaf929f84a9de76e2c9f1ac5eb8018a7cb4609d95c01112e35ab54070eb373157004621d45db3c347ea2b585bb5 SHA512 17ac97eaa01e3c6cd9c7d597822ad25ef5cec2354055304a2999a0a0d969fa0513640470260cf0d88c8d9a7c331f02d1ebf144245a6c45de47e26e7fa73b0ae1 |
28 |
|
29 |
diff --git a/dev-python/cython/cython-0.29.10.ebuild b/dev-python/cython/cython-0.29.10.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..3bd1896df64 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/cython/cython-0.29.10.ebuild |
34 |
@@ -0,0 +1,86 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
41 |
+PYTHON_REQ_USE="threads(+)" |
42 |
+ |
43 |
+inherit distutils-r1 toolchain-funcs elisp-common |
44 |
+ |
45 |
+MY_PN="Cython" |
46 |
+MY_P="${MY_PN}-${PV/_/}" |
47 |
+ |
48 |
+DESCRIPTION="A Python to C compiler" |
49 |
+HOMEPAGE="https://cython.org https://pypi.org/project/Cython/" |
50 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="Apache-2.0" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
55 |
+IUSE="doc emacs test" |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ emacs? ( virtual/emacs ) |
60 |
+" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
63 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
64 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
65 |
+ |
66 |
+SITEFILE=50cython-gentoo.el |
67 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
68 |
+ |
69 |
+python_prepare_all() { |
70 |
+ # tests behavior that is illegal in Python 3.7+ |
71 |
+ # https://github.com/cython/cython/issues/2454 |
72 |
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die |
73 |
+ |
74 |
+ distutils-r1_python_prepare_all |
75 |
+} |
76 |
+ |
77 |
+python_compile() { |
78 |
+ if ! python_is_python3; then |
79 |
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
80 |
+ local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
81 |
+ fi |
82 |
+ |
83 |
+ # Python gets confused when it is in sys.path before build. |
84 |
+ local -x PYTHONPATH= |
85 |
+ |
86 |
+ distutils-r1_python_compile |
87 |
+} |
88 |
+ |
89 |
+python_compile_all() { |
90 |
+ use emacs && elisp-compile Tools/cython-mode.el |
91 |
+ |
92 |
+ use doc && emake -C docs html |
93 |
+} |
94 |
+ |
95 |
+python_test() { |
96 |
+ tc-export CC |
97 |
+ # https://github.com/cython/cython/issues/1911 |
98 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
99 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
100 |
+ || die "Tests fail with ${EPYTHON}" |
101 |
+} |
102 |
+ |
103 |
+python_install_all() { |
104 |
+ local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
105 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
106 |
+ distutils-r1_python_install_all |
107 |
+ |
108 |
+ if use emacs; then |
109 |
+ elisp-install ${PN} Tools/cython-mode.* |
110 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
111 |
+ fi |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ use emacs && elisp-site-regen |
116 |
+} |
117 |
+ |
118 |
+pkg_postrm() { |
119 |
+ use emacs && elisp-site-regen |
120 |
+} |