summaryrefslogtreecommitdiff
path: root/dev-python/cython
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-03-19 11:37:34 +0000
commitb7b97785ebbb2f11d24d14dab8b81ed274f4ce6a (patch)
tree9fd110f9fc996e8a4213eeda994a8c112491b86d /dev-python/cython
parent066d27181e9a797ad9f8fc43b49fc9a10ff2f707 (diff)
gentoo resync : 19.03.2019
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/Manifest2
-rw-r--r--dev-python/cython/cython-0.29.6.ebuild86
2 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index ab9c05596959..1653024eadbe 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -5,9 +5,11 @@ DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326
DIST Cython-0.28.4.tar.gz 1880943 BLAKE2B a97314147294c95fa0bd6d3fa1a1315d81f8abb46a1f2196009c1ef6f0dd7f47f81a7b31ab81d1fd00e8de37878a18a22d225055181ee74ffe4cc8105d84cd75 SHA512 67d2da2d776fc02193cfe98c8942e93905ec5e30bf4e0f9d5c965d930a034936d4c29c8248fccefff5db6d4dee054ec854994bea63fa3f64ff65df7550997c29
DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc
DIST Cython-0.29.5.tar.gz 2045488 BLAKE2B ca809728115865b7d28100943b358d8f5236382e5ae5a43d557620c3bd856407a9f52b756fc910564a6c041d64b1439d60776c90c6970614f74ee2d03f94665f SHA512 4bbf54b248b9a08b9118d751a6bb5dbb81ae7a8238c8a3124d94bf7be67f15b68820e6ce5470903fb5d5ff5c3c213e1580f1c57a8cda33b356263f9ab46e8851
+DIST Cython-0.29.6.tar.gz 2047021 BLAKE2B 32fe6697ba407a75dad79f08fd2e33ba11b083c65f69e09cd269c8a9f445d183a8cf36794fc8b2abb5e98b9626f0c62a099367359634833f36273c7681835572 SHA512 bb8095b438a7d2567b8b831628fbb32c02299c866e41113da62fb5a5d4982dc0df947a9f723a82c52086806435d8f3518e78a803166149d476f81e042a12494e
EBUILD cython-0.25.2.ebuild 2138 BLAKE2B d0f2bfad42937f8f45350f00feacb1915c2798cc2428e107e15b56c8cbee1a08d3c2e79202da663f1d9cce49b3f2077464ac07eff84b711fcd6d01b4ac9dc1af SHA512 5c6f1c85b9aeb85704c244bc0a69c66c11ac8343b54237218e681ad2ae1c0ed909d7a8679b93527c2bd42cede174421bf5174eed178d0a62f8ee4d59890ff3ad
EBUILD cython-0.26.1.ebuild 2082 BLAKE2B b50ba96014c9b76e73aa34cc58ed8a7fb742ed0ad3d84cfd0ed07488c00b82b225630d0ca53be521baab970e30590754b764127d499784e0ea03f77c670132a8 SHA512 6962d88fef50a0304f23b154b5f260f2955aeda126921ab698f16fd29db253e8edc9ce09bec848cc32dbaafb8810741f9a25ad1ad00c2063c45f7d57db01213c
EBUILD cython-0.28.4.ebuild 2198 BLAKE2B 4324cb905f22c94b9dff3f96584f68ce4eda9e3d5856f8cb9f03113d4db515a291003aca014c8de40d994c6c09fbf243ab98928fcf7bc0fcf6ac712832a5750c SHA512 c8a0965141f6121126591cfdbb9b7d38b42e4fce7a661c7dceb18e8598664718b7c2a854daabab571de54343c9df78bb9e5830d8647c88840dedf0879f8b1b5d
EBUILD cython-0.29.4.ebuild 2173 BLAKE2B 0ffccc85e30508b942baef245fe484c193a6d4f23663f0b6e4bfc14cc7827ca3b42dbba9b0d6cf83d7b48b613d1d464e3f00a816c5f90120447c62c50f6d8617 SHA512 30de6f135469453cd47af06c4d8fff341b3dc146168099f765b82b0f8d767fc8c9714f4963ccbd9d3af415c4361979e03efc501c84ea0bc062489069f25031af
EBUILD cython-0.29.5.ebuild 2211 BLAKE2B 97ea664bbaa85c91e395e864b5cd749e0e3b5bad83a90885f5d40507bcb4e6c99710617e534abd5a3d35643a1bf879caff46f5fd9ceb934c8c29007e41d3fb8f SHA512 c6ad9e2a75f2b4d113c0e62ae37d21fb637bc559978fcffa9779c198071105769e90440e6d190007b35b88f19e855bf167985368fcd443b97e2f3e4d6b455441
+EBUILD cython-0.29.6.ebuild 2211 BLAKE2B 97ea664bbaa85c91e395e864b5cd749e0e3b5bad83a90885f5d40507bcb4e6c99710617e534abd5a3d35643a1bf879caff46f5fd9ceb934c8c29007e41d3fb8f SHA512 c6ad9e2a75f2b4d113c0e62ae37d21fb637bc559978fcffa9779c198071105769e90440e6d190007b35b88f19e855bf167985368fcd443b97e2f3e4d6b455441
MISC metadata.xml 570 BLAKE2B 078d948ba14cbbfb98103ee3746f773c12d35c91e64358950aa0ceb78695e19d8ca4c0c33b388c2c5cd54b83856430a8934d8a40aec74c3aa0d761e0a4a03add SHA512 73c65ef6b088cb50125dd662f263fb1aa1d60c3631aa8453b9ed2ede6bbd839235c6b37c3f8d1a17618c167874d64a3aa6f95c9141c8b6c921eaf4c1c4d68dad
diff --git a/dev-python/cython/cython-0.29.6.ebuild b/dev-python/cython/cython-0.29.6.ebuild
new file mode 100644
index 000000000000..09a50cfbb740
--- /dev/null
+++ b/dev-python/cython/cython-0.29.6.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2019 Gentoo Authors
+# 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="https://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 ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="doc emacs test"
+RESTRICT="!test? ( 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
+}