commit:     463c383d677499cf6cccf34861737a3d952202a5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  6 01:15:07 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Dec  6 01:15:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=463c383d

dev-python/cython: add 0.29.25

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/cython/Manifest              |  1 +
 dev-python/cython/cython-0.29.25.ebuild | 75 +++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 864a35bfccf4..c1522094bffc 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -1,3 +1,4 @@
 DIST cython-0.29.21.gh.tar.gz 2088511 BLAKE2B 
7a4ddabb65a519d3c71454ac8417438a3a9c46b47489c18e7c7e82ffcb5d5f2f0c5246d0b364f8317d374c53f0c83844c73c7d2ef6b9f75f10707aaf2931ce41
 SHA512 
2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679
 DIST cython-0.29.23.gh.tar.gz 2093463 BLAKE2B 
c710b9bc9e05e0030dff3098857b349564fd167f7d9c47e2ef4e8897e072f67497b8ed3994f45135c21f8b2bf3a2cff016fec9a808b2bbe9712174dd0a6b1a3e
 SHA512 
093b7a1d5c68f6e2d2b9b8adb9ac99e8967ddd0a66c0513a78e88bd55d96533dd8352b2478554fb53bf32a72d730967fb08ccb2eaa462da68f86891dceb4925a
 DIST cython-0.29.24.gh.tar.gz 2097245 BLAKE2B 
9f5f2da0aed61d7fda2e14ea0669a2dd187cd053f3b82621342c7be29e26ff581b673a32e43bacd5c0df3e515f250eb23a64b1dae8911132fdca48175910a3dc
 SHA512 
387a827f3cb7428248019744e3ed606a133d98ac882b83624d24ae0fdf8a8f2334978555d7d84e5cc4adaf715c541fef64e45bcbdda85ca33473c21f99360be8
+DIST cython-0.29.25.gh.tar.gz 2099536 BLAKE2B 
e07706662f860d8c807dc4a13660a05291eab9f33994a88639f565e9020c495215dbac9cbab69b7947ea82844a72706edfccb54f53dd80b5908ca703f30ee435
 SHA512 
6d1f0822eb6fb43372d42ebe3684df85ff430f58ff1f6d5774a2e1809d1f5ddc8827cee40cdc81bcb8b825cdf7b51262823a69ab4502fa28468cd1a1acab2283

diff --git a/dev-python/cython/cython-0.29.25.ebuild 
b/dev-python/cython/cython-0.29.25.ebuild
new file mode 100644
index 000000000000..0c107a31d2b0
--- /dev/null
+++ b/dev-python/cython/cython-0.29.25.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 toolchain-funcs elisp-common
+
+DESCRIPTION="A Python to C compiler"
+HOMEPAGE="https://cython.org https://pypi.org/project/Cython/
+       https://github.com/cython/cython";
+SRC_URI="https://github.com/cython/cython/archive/${PV}.tar.gz -> 
${P}.gh.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-solaris ~x86-solaris"
+IUSE="emacs test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       emacs? ( >=app-editors/emacs-23.1:* )
+"
+BDEPEND="${RDEPEND}
+       test? (
+               $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
+                       'python3*')
+       )"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
+       "${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
+)
+
+SITEFILE=50cython-gentoo.el
+
+distutils_enable_sphinx docs
+
+python_compile() {
+       # Python gets confused when it is in sys.path before build.
+       local -x PYTHONPATH=
+
+       distutils-r1_python_compile
+}
+
+python_compile_all() {
+       use emacs && elisp-compile Tools/cython-mode.el
+}
+
+python_test() {
+       tc-export CC
+       # https://github.com/cython/cython/issues/1911
+       local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
+       "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests ||
+               die "Tests fail with ${EPYTHON}"
+}
+
+python_install_all() {
+       local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
+       distutils-r1_python_install_all
+
+       if use emacs; then
+               elisp-install ${PN} Tools/cython-mode.*
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to