Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/
Date: Sat, 02 Nov 2019 08:02:53
Message-Id: 1572681767.937198ce60f131f66a42ec5745a5a7a5459e7115.mgorny@gentoo
1 commit: 937198ce60f131f66a42ec5745a5a7a5459e7115
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 2 07:39:26 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 2 08:02:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=937198ce
7
8 dev-python/cython: Bump to 0.29.14
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.14.ebuild | 78 +++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
17 index 4e857b26ce0..69e66c90569 100644
18 --- a/dev-python/cython/Manifest
19 +++ b/dev-python/cython/Manifest
20 @@ -1,3 +1,4 @@
21 DIST Cython-0.29.12.tar.gz 2050537 BLAKE2B 86c5ffd07e97d549f2d98ae0aa66a03dc2f8e86b3fca304f3fba69f63c1e6d176c57d19f4877cdfd500ca2ebed2eaaebe1ed7cea0099fa23bc7a08c23f1b4f26 SHA512 502756331d8c3618a75a881fc1a20b7e871cd3412904070f3080d5bd0918440230fdae96f096c255fec6b32b81ffcf838f22953b8da23b8845527810f457be60
22 DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc
23 DIST cython-0.29.13.gh.tar.gz 2072564 BLAKE2B 55a8c5c932262972cfa55ee2771e17ab5a57beab03d0dac5668f654a0bf68850ef62b7e59b322c527115af48b7243b9c919e739eaf440338a50b89c4645c0fbf SHA512 79efebfddabf31a046ae86a2c2170e0956098f4b1c7b8bbd338d30be7c96c31ee2d648332fc16ad9cf1e5d0ea4ca1a070b2d31ccbeae0c0f86a2f7700b92f656
24 +DIST cython-0.29.14.gh.tar.gz 2075030 BLAKE2B 12bbc2979c34fee9b498f5425d2cea5cedebda474e3f4ee6c9eb3185a4e33fc84df6c16454830316548e36cd9fb7c47f0925b0d6e16b325cbd81f8747c7e492a SHA512 fa1575fc5ec7ee19de34f91a15bdd45d889f54217dbe2a9654604ada90d8d86fe7bceb86449c41b68d6b65459769916a0d7d5f5da21c5597aedc876cde4e37df
25
26 diff --git a/dev-python/cython/cython-0.29.14.ebuild b/dev-python/cython/cython-0.29.14.ebuild
27 new file mode 100644
28 index 00000000000..e05666fae50
29 --- /dev/null
30 +++ b/dev-python/cython/cython-0.29.14.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} pypy{,3} )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1 toolchain-funcs elisp-common
41 +
42 +DESCRIPTION="A Python to C compiler"
43 +HOMEPAGE="https://cython.org https://pypi.org/project/Cython/
44 + https://github.com/cython/cython"
45 +SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
50 +IUSE="doc emacs test"
51 +RESTRICT="!test? ( 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? (
60 + $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
61 + 'python*')
62 + )"
63 +
64 +SITEFILE=50cython-gentoo.el
65 +
66 +python_compile() {
67 + if ! python_is_python3; then
68 + local CFLAGS="${CFLAGS} -fno-strict-aliasing"
69 + local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
70 + fi
71 +
72 + # Python gets confused when it is in sys.path before build.
73 + local -x PYTHONPATH=
74 +
75 + distutils-r1_python_compile
76 +}
77 +
78 +python_compile_all() {
79 + use emacs && elisp-compile Tools/cython-mode.el
80 +
81 + use doc && emake -C docs html
82 +}
83 +
84 +python_test() {
85 + tc-export CC
86 + # https://github.com/cython/cython/issues/1911
87 + local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
88 + "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
89 + || die "Tests fail with ${EPYTHON}"
90 +}
91 +
92 +python_install_all() {
93 + local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
94 + use doc && local HTML_DOCS=( docs/build/html/. )
95 + distutils-r1_python_install_all
96 +
97 + if use emacs; then
98 + elisp-install ${PN} Tools/cython-mode.*
99 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
100 + fi
101 +}
102 +
103 +pkg_postinst() {
104 + use emacs && elisp-site-regen
105 +}
106 +
107 +pkg_postrm() {
108 + use emacs && elisp-site-regen
109 +}