summaryrefslogtreecommitdiff
path: root/dev-python/cython
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-12-15 18:09:03 +0000
commit7bc9c63c9da678a7e6fceb095d56c634afd22c56 (patch)
tree4a67d50a439e9af63947e5f8b6ba3719af98b6c9 /dev-python/cython
parentb284a3168fa91a038925d2ecf5e4791011ea5e7d (diff)
gentoo resync : 15.12.2019
Diffstat (limited to 'dev-python/cython')
-rw-r--r--dev-python/cython/Manifest4
-rw-r--r--dev-python/cython/cython-0.29.14-r1.ebuild80
-rw-r--r--dev-python/cython/cython-0.29.4.ebuild1
-rw-r--r--dev-python/cython/files/cython-0.29.14-sphinx-update.patch13
4 files changed, 97 insertions, 1 deletions
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
index 6bc98f7bb921..7b1e7b2a2fc4 100644
--- a/dev-python/cython/Manifest
+++ b/dev-python/cython/Manifest
@@ -1,10 +1,12 @@
AUX 50cython-gentoo.el 388 BLAKE2B 5bc38190b467efa9e7be1a5831022534dbfdc02206fca34f39bb2c897aa50cdebf960589181a9614a50829c380a892a9013e8ec5f538d51f52475cb8d92fdb5b SHA512 dd554d0d6cc220988552b06a20337af20b847e75bee76c90eb92ea979d9c2ae9d64ffa849266ff403d857b3737981de451bf40061bea0533600476bc57661c18
+AUX cython-0.29.14-sphinx-update.patch 377 BLAKE2B 32ba9ccc6c093fb9e575686c9a3b707a10a2488979d0a1dcc0863022d48255455216d11c1968bc5d49a8b583a340113c090ec103ae233dcac2164beb1765f9cc SHA512 3714019a1659b69243bf5f76d1557e3e4e507fa6b15bf4259001f961d1127e18e01e3d17fe04706c882e264651ea5699c6295f33c66af7577ab6e0906c0d3273
DIST Cython-0.29.12.tar.gz 2050537 BLAKE2B 86c5ffd07e97d549f2d98ae0aa66a03dc2f8e86b3fca304f3fba69f63c1e6d176c57d19f4877cdfd500ca2ebed2eaaebe1ed7cea0099fa23bc7a08c23f1b4f26 SHA512 502756331d8c3618a75a881fc1a20b7e871cd3412904070f3080d5bd0918440230fdae96f096c255fec6b32b81ffcf838f22953b8da23b8845527810f457be60
DIST Cython-0.29.4.tar.gz 2044382 BLAKE2B b36d27706a3270805f66190a4cf2735eaf20b1b932365b324a433c0e58e63e860ce1500333233c3539ae697886ac0adc361a2c158d5d064a3ea05843debc3f26 SHA512 8f115e36975aaf64eda4df8b0a85378d0c80b3292dbd162be826b939def03bdc9f3eb937676e2367003c2944b570d97f50d7880becfdb2fdc5144077b4a722dc
DIST cython-0.29.13.gh.tar.gz 2072564 BLAKE2B 55a8c5c932262972cfa55ee2771e17ab5a57beab03d0dac5668f654a0bf68850ef62b7e59b322c527115af48b7243b9c919e739eaf440338a50b89c4645c0fbf SHA512 79efebfddabf31a046ae86a2c2170e0956098f4b1c7b8bbd338d30be7c96c31ee2d648332fc16ad9cf1e5d0ea4ca1a070b2d31ccbeae0c0f86a2f7700b92f656
DIST cython-0.29.14.gh.tar.gz 2075030 BLAKE2B 12bbc2979c34fee9b498f5425d2cea5cedebda474e3f4ee6c9eb3185a4e33fc84df6c16454830316548e36cd9fb7c47f0925b0d6e16b325cbd81f8747c7e492a SHA512 fa1575fc5ec7ee19de34f91a15bdd45d889f54217dbe2a9654604ada90d8d86fe7bceb86449c41b68d6b65459769916a0d7d5f5da21c5597aedc876cde4e37df
EBUILD cython-0.29.12.ebuild 2194 BLAKE2B ab0487179b79298f92b758b98610f246363be34b0c2af18eb07aec5434c1af37341eb108ab2c056d9377432a024346a3dacfcb34c6e3437fba30b8f5ed4e6150 SHA512 6e366e00fb3502e9013681ba4af7e3999b6e1b34ea01829e4b23ba34561c4f17b7118bf847a3fedb436c0f824b44fac44ea99521e3757b575931457a097a3975
EBUILD cython-0.29.13.ebuild 1992 BLAKE2B 0b0b140208d6fc0c304b52ccf3b9812e9072fc69fb5371732181be934a2ff7a2f6095ce23ebff17b894fd9a5ee4e8430d73121864b6365b94fd49fd0d174b84a SHA512 7d2b74467d79ef2de680468cda3eef19ae3f2fe8df79fa7fe62796f8015d9acd46aafebeb0af303b5cd579ff002e4f682c3a93cafb279c34829d82a7b0afce71
+EBUILD cython-0.29.14-r1.ebuild 1957 BLAKE2B 705b08bb09913448f078c30f783cdabd725e89b9ad49469c474e63304b0d17a4a73579b853b2ae50bc8ef3ea2a20c95d050b7eb270776329bea54fa05f7f45f2 SHA512 ac542dc6f199b2f7492b155b8b20ee3c29e3e7b010c7575e10becd009855a8b122f89e97efa9effb58846312df6237f7d25e2890591207d231d1f8453d9b275d
EBUILD cython-0.29.14.ebuild 1992 BLAKE2B 0b0b140208d6fc0c304b52ccf3b9812e9072fc69fb5371732181be934a2ff7a2f6095ce23ebff17b894fd9a5ee4e8430d73121864b6365b94fd49fd0d174b84a SHA512 7d2b74467d79ef2de680468cda3eef19ae3f2fe8df79fa7fe62796f8015d9acd46aafebeb0af303b5cd579ff002e4f682c3a93cafb279c34829d82a7b0afce71
-EBUILD cython-0.29.4.ebuild 2138 BLAKE2B 5d9c7a737b9704d1cbbadd67ab9eb2a6262bc63ddda154e3bd8c0dbce83584f70f66e960e6753acc24ba80aa66df85659898076756dbf5d5ce1532d93ef64739 SHA512 ca50d1b1bfa76454f460eb4cc368e64955eaf4df341521c5af62637c89f39e84e17b97c297410322e1ceb72367ddddf5c740287e07a1081e3cc548d846b9f303
+EBUILD cython-0.29.4.ebuild 2165 BLAKE2B bd8cdff790567006ced7633820365310421919673e777d18b4983ae2ae2bb139ea1b75b7f0b6aa1017329698d6deebcf9137c3e8d69f42334fd52ff4a5ab13fc SHA512 dac802145933e50aca440faf6351078b468b4478487431e913237ddbd95c707c01380eae60b8a7705bbccc77607c11fd5ae36b4af209e97e64a17ea5c9e9b5bf
MISC metadata.xml 570 BLAKE2B 078d948ba14cbbfb98103ee3746f773c12d35c91e64358950aa0ceb78695e19d8ca4c0c33b388c2c5cd54b83856430a8934d8a40aec74c3aa0d761e0a4a03add SHA512 73c65ef6b088cb50125dd662f263fb1aa1d60c3631aa8453b9ed2ede6bbd839235c6b37c3f8d1a17618c167874d64a3aa6f95c9141c8b6c921eaf4c1c4d68dad
diff --git a/dev-python/cython/cython-0.29.14-r1.ebuild b/dev-python/cython/cython-0.29.14-r1.ebuild
new file mode 100644
index 000000000000..55b4818f31ed
--- /dev/null
+++ b/dev-python/cython/cython-0.29.14-r1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
+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 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE="emacs test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ emacs? ( virtual/emacs )
+"
+BDEPEND="${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ $(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \
+ 'python3*')
+ )"
+
+PATCHES=(
+ "${FILESDIR}/cython-0.29.14-sphinx-update.patch"
+)
+
+SITEFILE=50cython-gentoo.el
+
+distutils_enable_sphinx docs
+
+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
+}
+
+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
+}
diff --git a/dev-python/cython/cython-0.29.4.ebuild b/dev-python/cython/cython-0.29.4.ebuild
index e3e0bcf59f77..cc697a40fd27 100644
--- a/dev-python/cython/cython-0.29.4.ebuild
+++ b/dev-python/cython/cython-0.29.4.ebuild
@@ -20,6 +20,7 @@ SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~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 )
diff --git a/dev-python/cython/files/cython-0.29.14-sphinx-update.patch b/dev-python/cython/files/cython-0.29.14-sphinx-update.patch
new file mode 100644
index 000000000000..3f426754f6f1
--- /dev/null
+++ b/dev-python/cython/files/cython-0.29.14-sphinx-update.patch
@@ -0,0 +1,13 @@
+diff --git a/docs/conf.py b/docs/conf.py
+index 10662e28c..a84e0b928 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -41,7 +41,7 @@ highlight_language = 'cython'
+ extensions = [
+ 'ipython_console_highlighting',
+ 'cython_highlighting',
+- 'sphinx.ext.pngmath',
++ 'sphinx.ext.imgmath',
+ 'sphinx.ext.todo',
+ 'sphinx.ext.intersphinx',
+ 'sphinx.ext.autodoc'