From 4cbcc855382a06088e2f016f62cafdbcb7e40665 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 20 Mar 2022 00:40:44 +0000 Subject: gentoo resync : 20.03.2022 --- dev-python/cython/Manifest | 4 +- dev-python/cython/cython-0.29.26.ebuild | 2 +- dev-python/cython/cython-0.29.28.ebuild | 76 +++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 dev-python/cython/cython-0.29.28.ebuild (limited to 'dev-python/cython') diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest index 9632f1c6c7b1..30af7ecdda2c 100644 --- a/dev-python/cython/Manifest +++ b/dev-python/cython/Manifest @@ -4,7 +4,9 @@ AUX cython-0.29.23-test_exceptions-py310.patch 656 BLAKE2B 6c650c85d01b8bf367528 DIST cython-0.29.25.gh.tar.gz 2100012 BLAKE2B 497c2550c870c808f1c972d3e9ffedd6672544b9976653faac4a4125008e4472ae5a2e0db0510c8b2c5fd11f73a5885e0e4394bbce2f1327b7610bf59b64f640 SHA512 1d655bb4de8bd3480bcd579c32cd0e5bfc5cfc3d966d3d892b98cc86f59c9bd0522066c4c5dbc4c6abeb3ebe3fcd3f49ec873dd724f9ad04976635f652fdf9e3 DIST cython-0.29.26.gh.tar.gz 2100616 BLAKE2B 9990d8fd14a8042b1a27a4f60fcc8f6d4be42a1e475f0e5d37bc6c60439ca00a1a70b49ab708ad2dfac5184a62c25d75f27ff158ef7f0df9132355c570a9aac6 SHA512 936449dd0031c2e2baeb4402a448d632324c1b66bf062ae0e632cf63dc27556607efb8446e8f913253b761627d3946283c2a60fdcad8c2434e1601fe4b0fb60e DIST cython-0.29.27.gh.tar.gz 2101169 BLAKE2B ebc56ced8fdf61b3be9f9abe44f71ce6b243e002ac4992dbf3a0f58331c00a0d18498190b50cba921351a38c27cf410bbc3e6b146ca3e73b829f0292fa87eebf SHA512 ca9ef31a662b6971c437a3e8c931d8e000fc6a55b3afbb317588944f365d903676b2a394ecfdb2da0190bdad84d1daf699662b95a68f4008e78e31bab4085b66 +DIST cython-0.29.28.gh.tar.gz 2101301 BLAKE2B 980c04545e935deb4b4b1653f167dcbc94b8e2b24bc8897b5cc996dfca977645f7475c32aa973251ffcbbb31e725e27693af61ceaf66f2332c9525b02653dc76 SHA512 52490d0b5355e13cbe586830f763173d7556cf3d79d79192ca75138b1190e7a4c1f3feeb0568349802ef3b97300c3805f54eef5ffd73a5180d68f023ac2a44cd EBUILD cython-0.29.25.ebuild 1824 BLAKE2B 2c84e4bf9cfc26bed3d8f88ceab4f760565688ce44a8d2082e3058a6dadc4f71ad89c6e85d192739b6d176e382d08d0ad1f532bd1d8f0285de5bd8bbce970ec2 SHA512 c80bd93c6c289b3c6a150dca28f4b891f9489bdb70643a0e26443e77e3b1510cc97a899655a173409147283c49db31f9315873a6be1658a11696c7d2f6eb9966 -EBUILD cython-0.29.26.ebuild 1825 BLAKE2B 93ddf306ea56ae40708fb45e7e597dd7048784becc0de6211b1d731f3b2e231f849db143b620a9652b541a54d10c07b640a8b5c01637100b3f2eb8def41191a3 SHA512 ac0701ccaaa308283ae1f244ca2eeba8f0d6024f9511f162b00ba7809b00253c6a377f66dd1a2dfe7e85a66992d279d7b997d96c4de6ec032ff98fab4d18d945 +EBUILD cython-0.29.26.ebuild 1824 BLAKE2B 2c84e4bf9cfc26bed3d8f88ceab4f760565688ce44a8d2082e3058a6dadc4f71ad89c6e85d192739b6d176e382d08d0ad1f532bd1d8f0285de5bd8bbce970ec2 SHA512 c80bd93c6c289b3c6a150dca28f4b891f9489bdb70643a0e26443e77e3b1510cc97a899655a173409147283c49db31f9315873a6be1658a11696c7d2f6eb9966 EBUILD cython-0.29.27.ebuild 1864 BLAKE2B 5025072d08a5986432d2f5b834088595a35dd2e28fa884d5ff138904570a96845bcd36778e224a9f1482ad7b915486f980ecddf7184ec76ee3c1fb61a6573f79 SHA512 ffed50677374d375c9459e2b4181bc0c2ddbc6399fcab56e333d0f4b83f352e0daeb27c383e7325fdefe04a707f3837d58edbe3c90989409a65d142e9e1a4e3a +EBUILD cython-0.29.28.ebuild 1857 BLAKE2B 376547fe4181358ae5fc430b114b20b30d9d78e831aa3453f65b15b4a638e95928276bb837ecad1c3633668cc1ef74aa91f4429de2815fdc9223ddb15ea4057d SHA512 990fc4235914475a30e7cf93d984eca791f4af1a847dcc40f5ea5d05fdcb26291e7e23052ad5ad774f2768e340992097d080d0e7875b66d95ffcfae24d14a2f6 MISC metadata.xml 606 BLAKE2B 1ee3fc75852383aa0618afeb7521c3ae0e95b518c85b2c58ff958905092cf68017d313a09d25031a50b649f9dd1b452e751036f2552df9d91447baaeff0a8f0b SHA512 b7917c2e417cee9e59c8011246f7223f5095c87f0294ea140dbfc8fda0b09cf61c9f055380a9d3f74a07e71bb49d75f219d6224ea95f1f4d4b451e5688c13f78 diff --git a/dev-python/cython/cython-0.29.26.ebuild b/dev-python/cython/cython-0.29.26.ebuild index 9a05a3bf7890..13ce9563c542 100644 --- a/dev-python/cython/cython-0.29.26.ebuild +++ b/dev-python/cython/cython-0.29.26.ebuild @@ -15,7 +15,7 @@ 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" +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 )" diff --git a/dev-python/cython/cython-0.29.28.ebuild b/dev-python/cython/cython-0.29.28.ebuild new file mode 100644 index 000000000000..145dfa214fab --- /dev/null +++ b/dev-python/cython/cython-0.29.28.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..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 +} -- cgit v1.2.3