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: Mon, 01 Jul 2019 07:56:20
Message-Id: 1561967759.eb3e2dd2307897dc4c1a705e23caccca3856dba7.mgorny@gentoo
1 commit: eb3e2dd2307897dc4c1a705e23caccca3856dba7
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 1 06:47:50 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 1 07:55:59 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb3e2dd2
7
8 dev-python/cython: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/cython/Manifest | 2 -
13 dev-python/cython/cython-0.29.7.ebuild | 86 ----------------------------------
14 dev-python/cython/cython-0.29.9.ebuild | 86 ----------------------------------
15 3 files changed, 174 deletions(-)
16
17 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
18 index bf50a62aa4c..1e8a78f603a 100644
19 --- a/dev-python/cython/Manifest
20 +++ b/dev-python/cython/Manifest
21 @@ -3,5 +3,3 @@ DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326
22 DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29
23 DIST Cython-0.29.10.tar.gz 2049468 BLAKE2B 1cfae1c5e2d7277d3ac25ab0ff5a7b4346242e6c01d0b7945491f4fb64e0c9b98c593efa41b790aa0437ae72275a0ba3b6fe8614c7efaadc6139823f0e453d71 SHA512 df8430bb89816df84abfc6d59bee8e50f4117e8e82b9c82a889afca390a42a1569a9b5dcde76f40e7c29d728489af34c6fe0cf359912f7b74ac0d014af2171c3
24 DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc
25 -DIST Cython-0.29.7.tar.gz 2047944 BLAKE2B 79a2dbbbeef2c87e523d1222c1e3b62a63273644a0295a08fed3909ef01f2167baf15c0344a64ec168820e21c5c99b0accc083c8dfcaca7f1c0cb8c4b23677cc SHA512 1c2fd2185d65445318118d917ff6f8b4b958b0a036bc3ce1587dcb8fa94ccc750901cece27e4d0d39c53db68c3a620edf2dcf9424d7a6df58a0275097b90fa6e
26 -DIST Cython-0.29.9.tar.gz 2049206 BLAKE2B d81cc4be6d99e8be025167700517880c3250feaf929f84a9de76e2c9f1ac5eb8018a7cb4609d95c01112e35ab54070eb373157004621d45db3c347ea2b585bb5 SHA512 17ac97eaa01e3c6cd9c7d597822ad25ef5cec2354055304a2999a0a0d969fa0513640470260cf0d88c8d9a7c331f02d1ebf144245a6c45de47e26e7fa73b0ae1
27
28 diff --git a/dev-python/cython/cython-0.29.7.ebuild b/dev-python/cython/cython-0.29.7.ebuild
29 deleted file mode 100644
30 index 3bd1896df64..00000000000
31 --- a/dev-python/cython/cython-0.29.7.ebuild
32 +++ /dev/null
33 @@ -1,86 +0,0 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=7
38 -
39 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
40 -PYTHON_REQ_USE="threads(+)"
41 -
42 -inherit distutils-r1 toolchain-funcs elisp-common
43 -
44 -MY_PN="Cython"
45 -MY_P="${MY_PN}-${PV/_/}"
46 -
47 -DESCRIPTION="A Python to C compiler"
48 -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/"
49 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
50 -
51 -LICENSE="Apache-2.0"
52 -SLOT="0"
53 -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"
54 -IUSE="doc emacs test"
55 -RESTRICT="!test? ( test )"
56 -
57 -RDEPEND="
58 - emacs? ( virtual/emacs )
59 -"
60 -DEPEND="${RDEPEND}
61 - dev-python/setuptools[${PYTHON_USEDEP}]
62 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
63 - test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
64 -
65 -SITEFILE=50cython-gentoo.el
66 -S="${WORKDIR}/${MY_PN}-${PV%_*}"
67 -
68 -python_prepare_all() {
69 - # tests behavior that is illegal in Python 3.7+
70 - # https://github.com/cython/cython/issues/2454
71 - sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
72 -
73 - distutils-r1_python_prepare_all
74 -}
75 -
76 -python_compile() {
77 - if ! python_is_python3; then
78 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
79 - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
80 - fi
81 -
82 - # Python gets confused when it is in sys.path before build.
83 - local -x PYTHONPATH=
84 -
85 - distutils-r1_python_compile
86 -}
87 -
88 -python_compile_all() {
89 - use emacs && elisp-compile Tools/cython-mode.el
90 -
91 - use doc && emake -C docs html
92 -}
93 -
94 -python_test() {
95 - tc-export CC
96 - # https://github.com/cython/cython/issues/1911
97 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
98 - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
99 - || die "Tests fail with ${EPYTHON}"
100 -}
101 -
102 -python_install_all() {
103 - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
104 - use doc && local HTML_DOCS=( docs/build/html/. )
105 - distutils-r1_python_install_all
106 -
107 - if use emacs; then
108 - elisp-install ${PN} Tools/cython-mode.*
109 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
110 - fi
111 -}
112 -
113 -pkg_postinst() {
114 - use emacs && elisp-site-regen
115 -}
116 -
117 -pkg_postrm() {
118 - use emacs && elisp-site-regen
119 -}
120
121 diff --git a/dev-python/cython/cython-0.29.9.ebuild b/dev-python/cython/cython-0.29.9.ebuild
122 deleted file mode 100644
123 index 3bd1896df64..00000000000
124 --- a/dev-python/cython/cython-0.29.9.ebuild
125 +++ /dev/null
126 @@ -1,86 +0,0 @@
127 -# Copyright 1999-2019 Gentoo Authors
128 -# Distributed under the terms of the GNU General Public License v2
129 -
130 -EAPI=7
131 -
132 -PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
133 -PYTHON_REQ_USE="threads(+)"
134 -
135 -inherit distutils-r1 toolchain-funcs elisp-common
136 -
137 -MY_PN="Cython"
138 -MY_P="${MY_PN}-${PV/_/}"
139 -
140 -DESCRIPTION="A Python to C compiler"
141 -HOMEPAGE="https://cython.org https://pypi.org/project/Cython/"
142 -SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
143 -
144 -LICENSE="Apache-2.0"
145 -SLOT="0"
146 -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"
147 -IUSE="doc emacs test"
148 -RESTRICT="!test? ( test )"
149 -
150 -RDEPEND="
151 - emacs? ( virtual/emacs )
152 -"
153 -DEPEND="${RDEPEND}
154 - dev-python/setuptools[${PYTHON_USEDEP}]
155 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
156 - test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
157 -
158 -SITEFILE=50cython-gentoo.el
159 -S="${WORKDIR}/${MY_PN}-${PV%_*}"
160 -
161 -python_prepare_all() {
162 - # tests behavior that is illegal in Python 3.7+
163 - # https://github.com/cython/cython/issues/2454
164 - sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
165 -
166 - distutils-r1_python_prepare_all
167 -}
168 -
169 -python_compile() {
170 - if ! python_is_python3; then
171 - local CFLAGS="${CFLAGS} -fno-strict-aliasing"
172 - local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
173 - fi
174 -
175 - # Python gets confused when it is in sys.path before build.
176 - local -x PYTHONPATH=
177 -
178 - distutils-r1_python_compile
179 -}
180 -
181 -python_compile_all() {
182 - use emacs && elisp-compile Tools/cython-mode.el
183 -
184 - use doc && emake -C docs html
185 -}
186 -
187 -python_test() {
188 - tc-export CC
189 - # https://github.com/cython/cython/issues/1911
190 - local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
191 - "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
192 - || die "Tests fail with ${EPYTHON}"
193 -}
194 -
195 -python_install_all() {
196 - local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
197 - use doc && local HTML_DOCS=( docs/build/html/. )
198 - distutils-r1_python_install_all
199 -
200 - if use emacs; then
201 - elisp-install ${PN} Tools/cython-mode.*
202 - elisp-site-file-install "${FILESDIR}/${SITEFILE}"
203 - fi
204 -}
205 -
206 -pkg_postinst() {
207 - use emacs && elisp-site-regen
208 -}
209 -
210 -pkg_postrm() {
211 - use emacs && elisp-site-regen
212 -}