1 |
commit: 1691e61b90291489b4c151439f65dad556312421 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 15 06:13:47 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 15 08:37:48 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1691e61b |
7 |
|
8 |
dev-python/cython: Bump to 0.28.4 |
9 |
|
10 |
dev-python/cython/Manifest | 1 + |
11 |
dev-python/cython/cython-0.28.4.ebuild | 78 ++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 79 insertions(+) |
13 |
|
14 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
15 |
index f7e79cafe9f..66661d2cf36 100644 |
16 |
--- a/dev-python/cython/Manifest |
17 |
+++ b/dev-python/cython/Manifest |
18 |
@@ -1,3 +1,4 @@ |
19 |
DIST Cython-0.25.2.tar.gz 1703315 BLAKE2B e458604d0843afa128c6019244220bd6b3dd6653013698aa67ee2f71555f09813a8136ef92d6dc51ca38fe085e7bedc5e01d1a32bbd0885e62bd91c2e482bebd SHA512 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1 |
20 |
DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326015ff320d8cd61818e5eb5fb4daf73ad4e72760d84f4cdaa2386b87d719cf9cd41584b781d4e2021e377a58422 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948 |
21 |
DIST Cython-0.28.2.tar.gz 1878797 BLAKE2B f04ae2b39ace94f33341bdc4f5e0871d34523070345340adcbfbfb1629e5bd6e2e6db6a0cf24dc392e245fd3c4ae162eae2e14af1c5dcf20896e5d2983c1ea0a SHA512 7d09d1fdc10f96eb6121657b71e059c38c479b4ca180965a8e5adb89ac0f9be50260ea46197c45e8ddc7c1339b9b88c140dac2c4a7a49e1943fb4bf24a73d082 |
22 |
+DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29 |
23 |
|
24 |
diff --git a/dev-python/cython/cython-0.28.4.ebuild b/dev-python/cython/cython-0.28.4.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..eecc7a4ba32 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/cython/cython-0.28.4.ebuild |
29 |
@@ -0,0 +1,78 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) |
36 |
+PYTHON_REQ_USE="threads(+)" |
37 |
+ |
38 |
+inherit distutils-r1 toolchain-funcs elisp-common |
39 |
+ |
40 |
+MY_PN="Cython" |
41 |
+MY_P="${MY_PN}-${PV/_/}" |
42 |
+ |
43 |
+DESCRIPTION="A Python to C compiler" |
44 |
+HOMEPAGE="http://cython.org https://pypi.org/project/Cython/" |
45 |
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+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" |
50 |
+ |
51 |
+IUSE="doc emacs test" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ emacs? ( virtual/emacs ) |
55 |
+" |
56 |
+DEPEND="${RDEPEND} |
57 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
58 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
59 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
60 |
+ |
61 |
+SITEFILE=50cython-gentoo.el |
62 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
63 |
+ |
64 |
+python_compile() { |
65 |
+ if ! python_is_python3; then |
66 |
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing" |
67 |
+ local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing" |
68 |
+ fi |
69 |
+ |
70 |
+ # Python gets confused when it is in sys.path before build. |
71 |
+ local -x PYTHONPATH= |
72 |
+ |
73 |
+ distutils-r1_python_compile |
74 |
+} |
75 |
+ |
76 |
+python_compile_all() { |
77 |
+ use emacs && elisp-compile Tools/cython-mode.el |
78 |
+ |
79 |
+ use doc && unset XDG_CONFIG_HOME && emake -C docs html |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ tc-export CC |
84 |
+ # https://github.com/cython/cython/issues/1911 |
85 |
+ local -x CFLAGS="${CFLAGS} -fno-strict-overflow" |
86 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
87 |
+ || die "Tests fail with ${EPYTHON}" |
88 |
+} |
89 |
+ |
90 |
+python_install_all() { |
91 |
+ local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt ) |
92 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
93 |
+ distutils-r1_python_install_all |
94 |
+ |
95 |
+ if use emacs; then |
96 |
+ elisp-install ${PN} Tools/cython-mode.* |
97 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
98 |
+ fi |
99 |
+} |
100 |
+ |
101 |
+pkg_postinst() { |
102 |
+ use emacs && elisp-site-regen |
103 |
+} |
104 |
+ |
105 |
+pkg_postrm() { |
106 |
+ use emacs && elisp-site-regen |
107 |
+} |