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: Wed, 06 May 2020 07:12:26
Message-Id: 1588749135.48d04270df47ba704033e55ffb6230bb456f2f92.mgorny@gentoo
1 commit: 48d04270df47ba704033e55ffb6230bb456f2f92
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 6 06:58:34 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 6 07:12:15 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48d04270
7
8 dev-python/cython: Remove old
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-r1.ebuild | 80 ------------------------------
14 2 files changed, 81 deletions(-)
15
16 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
17 index 8697379874a..17cdcd9352e 100644
18 --- a/dev-python/cython/Manifest
19 +++ b/dev-python/cython/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST cython-0.29.14.gh.tar.gz 2075030 BLAKE2B 12bbc2979c34fee9b498f5425d2cea5cedebda474e3f4ee6c9eb3185a4e33fc84df6c16454830316548e36cd9fb7c47f0925b0d6e16b325cbd81f8747c7e492a SHA512 fa1575fc5ec7ee19de34f91a15bdd45d889f54217dbe2a9654604ada90d8d86fe7bceb86449c41b68d6b65459769916a0d7d5f5da21c5597aedc876cde4e37df
22 DIST cython-0.29.15.gh.tar.gz 2075879 BLAKE2B e6322656c819c6b09e235c32d2b520e8fe917c864047d028dd67041e70251025f14accbd76499b7b9290d0424989adf89321f251526e66a892bdc243ba80ba7f SHA512 bd0872359d31a41750353bb0d7f03c2a40aa2bf6e492148e693321cef15b02ae4f8d5f5a00efde7216f09a6ac06f2bb3ded9d00e27ad0cfc53605f3a9ef55af8
23 DIST cython-0.29.17.gh.tar.gz 2080768 BLAKE2B f53f8593f4ab9ef87c8fff47a031d365a748b617b7ee41872768a6a649ca3c6a6f9a338f115881117cbb4ffe1811047ac5fdcac745d6387eee29487c9da4c297 SHA512 f722e4feb0fcd0de7b882d0ba7cd78c37b6aaa4438619607665ea269b207a482fab6ca65cf12bab54d94b5929776c973a270c0748ed35b0f88a72811bf90d4df
24
25 diff --git a/dev-python/cython/cython-0.29.14-r1.ebuild b/dev-python/cython/cython-0.29.14-r1.ebuild
26 deleted file mode 100644
27 index 78cd7d59ec3..00000000000
28 --- a/dev-python/cython/cython-0.29.14-r1.ebuild
29 +++ /dev/null
30 @@ -1,80 +0,0 @@
31 -# Copyright 1999-2020 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
37 -PYTHON_REQ_USE="threads(+)"
38 -
39 -inherit distutils-r1 toolchain-funcs elisp-common
40 -
41 -DESCRIPTION="A Python to C compiler"
42 -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/
43 - https://github.com/cython/cython"
44 -SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
45 -
46 -LICENSE="Apache-2.0"
47 -SLOT="0"
48 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
49 -IUSE="emacs test"
50 -RESTRICT="!test? ( test )"
51 -
52 -RDEPEND="
53 - emacs? ( >=app-editors/emacs-23.1:* )
54 -"
55 -BDEPEND="${RDEPEND}
56 - dev-python/setuptools[${PYTHON_USEDEP}]
57 - test? (
58 - $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
59 - 'python3*')
60 - )"
61 -
62 -PATCHES=(
63 - "${FILESDIR}/cython-0.29.14-sphinx-update.patch"
64 -)
65 -
66 -SITEFILE=50cython-gentoo.el
67 -
68 -distutils_enable_sphinx docs
69 -
70 -python_compile() {
71 - if ! python_is_python3; then
72 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
73 - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
74 - fi
75 -
76 - # Python gets confused when it is in sys.path before build.
77 - local -x PYTHONPATH=
78 -
79 - distutils-r1_python_compile
80 -}
81 -
82 -python_compile_all() {
83 - use emacs && elisp-compile Tools/cython-mode.el
84 -}
85 -
86 -python_test() {
87 - tc-export CC
88 - # https://github.com/cython/cython/issues/1911
89 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
90 - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
91 - || die "Tests fail with ${EPYTHON}"
92 -}
93 -
94 -python_install_all() {
95 - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
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 -}