summaryrefslogtreecommitdiff
path: root/dev-python/cython
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-12-24 14:11:38 +0000
commitde49812990871e1705b64051c35161d5e6400269 (patch)
tree5e1e8fcb0ff4579dbd22a1bfee28a6b97dc8aaeb /dev-python/cython
parent536c3711867ec947c1738f2c4b96f22e4863322d (diff)
gentoo resync : 24.12.2018
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/Manifest6
-rw-r--r--dev-python/cython/cython-0.29.1.ebuild (renamed from dev-python/cython/cython-0.28.2.ebuild)14
-rw-r--r--dev-python/cython/cython-0.29.2.ebuild86
3 files changed, 101 insertions, 5 deletions
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 700901eca5f9..262e780a1883 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -2,12 +2,14 @@ AUX 0.25.2-test-cpdef_enums-L-suffix.patch 586 BLAKE2B 625addf1285b64abe19329cd4
AUX 50cython-gentoo.el 388 BLAKE2B 5bc38190b467efa9e7be1a5831022534dbfdc02206fca34f39bb2c897aa50cdebf960589181a9614a50829c380a892a9013e8ec5f538d51f52475cb8d92fdb5b SHA512 dd554d0d6cc220988552b06a20337af20b847e75bee76c90eb92ea979d9c2ae9d64ffa849266ff403d857b3737981de451bf40061bea0533600476bc57661c18
DIST Cython-0.25.2.tar.gz 1703315 BLAKE2B e458604d0843afa128c6019244220bd6b3dd6653013698aa67ee2f71555f09813a8136ef92d6dc51ca38fe085e7bedc5e01d1a32bbd0885e62bd91c2e482bebd SHA512 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1
DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326015ff320d8cd61818e5eb5fb4daf73ad4e72760d84f4cdaa2386b87d719cf9cd41584b781d4e2021e377a58422 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948
-DIST Cython-0.28.2.tar.gz 1878797 BLAKE2B f04ae2b39ace94f33341bdc4f5e0871d34523070345340adcbfbfb1629e5bd6e2e6db6a0cf24dc392e245fd3c4ae162eae2e14af1c5dcf20896e5d2983c1ea0a SHA512 7d09d1fdc10f96eb6121657b71e059c38c479b4ca180965a8e5adb89ac0f9be50260ea46197c45e8ddc7c1339b9b88c140dac2c4a7a49e1943fb4bf24a73d082
DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29
+DIST Cython-0.29.1.tar.gz 2040434 BLAKE2B b6f30f8263d6130efaf9bbbdf0008725161e5182730aa072ab3d16bc830dd2bfdb24fb89c95a113b65efab52ade47572d80d007f900d2ddf5415c69582d618e4 SHA512 f5b97fed6f4f1131cf43504df797d2e87c343f17d49b661747f26040eb171603b29444beb04043b1e61aa347a8a8a2e8d53c2e2c6d8a8108866f153bc7d51b6b
+DIST Cython-0.29.2.tar.gz 2041500 BLAKE2B 9edf4297e55b5de438fb79bdbfb4b1468af8b72e5556b38b9349b84fd9b917a56bc295b11e2c8938984fbd47099d4938450fac225c94687c1b3dab2749f72232 SHA512 d553dbb35b0841ca64d03fae3157e3a46248f16f14a1b75bbae979ca74a5fa89f85fa254a442a34314fe385d0aef7afa8c75b7f82662b37f7eeccd82e1404603
DIST Cython-0.29.tar.gz 2037177 BLAKE2B 30c08f257caf8f1b8ac2cec7dd0a50250f614397979ddd8920b022ed8f34d38a32d4640b3c1fc8524f16dfbadb31ffdd6d216367bbf0a15b9dd69baa62c8f072 SHA512 f90249c12bb9c1f5b9bcecd66624516d6e255a8d321a5dada2ba4eda360c12623c64b391177e061eac7a37b24ec53f8098fc0e1b46065e69eb0766585f739ab6
EBUILD cython-0.25.2.ebuild 2140 BLAKE2B 98f31b72d1c298218c5b368a430ed0acd65b69919c833340dea4182abf949dbf3733bb1cd322be2d20fd23daee19ca68db377572e73f6a35e6f1dd16b1b6c821 SHA512 2e21871838aa75a31826ccc93402199427db7681ca3f6de8c44906212e64730d3e9a16fd39fabff97b358281a28a5a743308962f0dbe492c4bc27007e0a8479d
EBUILD cython-0.26.1.ebuild 2084 BLAKE2B 94de0e3e0c221894148cda42d5a664e4036ecb929308185ae62c2a40e03ceb34d39a738ec22f17e1fe787ef99f4b5bebf33cfc6d6a5abc1064223c90eb3c6a54 SHA512 3cd6fe405a37f5c7174d2067c231dbb3dfeb634c161a90aa3e7b7c5ce2757642c2b71a9a0491b8c2d2c13eddfff6157e7e21b3c0f8ca66d2e509793c354ab10a
-EBUILD cython-0.28.2.ebuild 1963 BLAKE2B ee1c8dce215851a3bb5d104fc500ddf4e871a81fb52cf44471e1fbfc28a0bfcb08f9334cc934c90c99e4c0339e117e5e03b05384870cc05f919aa649bd73e26d SHA512 3047c57f88f5a62e0a8fad38d1cf1a9fdac95cae38c3c2db08c27e157f010b049281a1df118e66758a7e6ac0693ede6055d878268d97a3b7fc2316bcdcbedd35
EBUILD cython-0.28.4.ebuild 2200 BLAKE2B 44e32fde8923b06bf65875f462de4eca5dc8d175663c0cd005dc3ce150d179bec8e56eef7cef6cd7539ea8b4ee18e853fac5082dccefeed2ff8eee2f9cc31169 SHA512 9065cd45c542e4eaa96cb027fd1940a2ab1abf5af31c4138cc319d74c5c658048fc7d550bd67d026dd6b474e42ab3f6d41e56203ffc921410df745c76e845408
+EBUILD cython-0.29.1.ebuild 2175 BLAKE2B 5733082f054b447a02d1bb08d2db922e412f022026952c015259f80edda0e5b91cfbbd6dc60f6918fe3240933b0ea3e43dd3c643dcc10eb2beecb365b4decfff SHA512 67c591c43fda93dffd4dc15596cda396c2c17494476328d2b72ff6399d6da31f7faa92e55e1268bb9811cfff5c933e6451accc5b344ad2bb6bbc80961b4b047c
+EBUILD cython-0.29.2.ebuild 2175 BLAKE2B 5733082f054b447a02d1bb08d2db922e412f022026952c015259f80edda0e5b91cfbbd6dc60f6918fe3240933b0ea3e43dd3c643dcc10eb2beecb365b4decfff SHA512 67c591c43fda93dffd4dc15596cda396c2c17494476328d2b72ff6399d6da31f7faa92e55e1268bb9811cfff5c933e6451accc5b344ad2bb6bbc80961b4b047c
EBUILD cython-0.29.ebuild 2175 BLAKE2B 5733082f054b447a02d1bb08d2db922e412f022026952c015259f80edda0e5b91cfbbd6dc60f6918fe3240933b0ea3e43dd3c643dcc10eb2beecb365b4decfff SHA512 67c591c43fda93dffd4dc15596cda396c2c17494476328d2b72ff6399d6da31f7faa92e55e1268bb9811cfff5c933e6451accc5b344ad2bb6bbc80961b4b047c
MISC metadata.xml 570 BLAKE2B 078d948ba14cbbfb98103ee3746f773c12d35c91e64358950aa0ceb78695e19d8ca4c0c33b388c2c5cd54b83856430a8934d8a40aec74c3aa0d761e0a4a03add SHA512 73c65ef6b088cb50125dd662f263fb1aa1d60c3631aa8453b9ed2ede6bbd839235c6b37c3f8d1a17618c167874d64a3aa6f95c9141c8b6c921eaf4c1c4d68dad
diff --git a/dev-python/cython/cython-0.28.2.ebuild b/dev-python/cython/cython-0.29.1.ebuild
index eecc7a4ba326..930ba91157b7 100644
--- a/dev-python/cython/cython-0.28.2.ebuild
+++ b/dev-python/cython/cython-0.29.1.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 toolchain-funcs elisp-common
@@ -32,6 +32,14 @@ DEPEND="${RDEPEND}
SITEFILE=50cython-gentoo.el
S="${WORKDIR}/${MY_PN}-${PV%_*}"
+python_prepare_all() {
+ # tests behavior that is illegal in Python 3.7+
+ # https://github.com/cython/cython/issues/2454
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
+
+ distutils-r1_python_prepare_all
+}
+
python_compile() {
if ! python_is_python3; then
local CFLAGS="${CFLAGS} -fno-strict-aliasing"
@@ -47,7 +55,7 @@ python_compile() {
python_compile_all() {
use emacs && elisp-compile Tools/cython-mode.el
- use doc && unset XDG_CONFIG_HOME && emake -C docs html
+ use doc && emake -C docs html
}
python_test() {
diff --git a/dev-python/cython/cython-0.29.2.ebuild b/dev-python/cython/cython-0.29.2.ebuild
new file mode 100644
index 000000000000..930ba91157b7
--- /dev/null
+++ b/dev-python/cython/cython-0.29.2.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 toolchain-funcs elisp-common
+
+MY_PN="Cython"
+MY_P="${MY_PN}-${PV/_/}"
+
+DESCRIPTION="A Python to C compiler"
+HOMEPAGE="http://cython.org https://pypi.org/project/Cython/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+
+IUSE="doc emacs test"
+
+RDEPEND="
+ emacs? ( virtual/emacs )
+"
+DEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
+
+SITEFILE=50cython-gentoo.el
+S="${WORKDIR}/${MY_PN}-${PV%_*}"
+
+python_prepare_all() {
+ # tests behavior that is illegal in Python 3.7+
+ # https://github.com/cython/cython/issues/2454
+ sed -i -e '/with_outer_raising/,/return/d' tests/run/generators_py.py || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ if ! python_is_python3; then
+ local CFLAGS="${CFLAGS} -fno-strict-aliasing"
+ local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
+ fi
+
+ # 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
+
+ use doc && emake -C docs html
+}
+
+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 )
+ use doc && local HTML_DOCS=( docs/build/html/. )
+ 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
+}