diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-10-27 01:33:22 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-10-27 01:34:16 -0400 |
commit | 72770f61fa2074831d66f090f54a133be59843d8 (patch) | |
tree | 0c0fe936aa98bbb6be1098b8f726339cc53079fa /dev-python/cython | |
parent | net-mail/imapsync: version bump to 1.684 (diff) | |
download | gentoo-72770f61fa2074831d66f090f54a133be59843d8.tar.gz gentoo-72770f61fa2074831d66f090f54a133be59843d8.tar.bz2 gentoo-72770f61fa2074831d66f090f54a133be59843d8.zip |
dev-python/cython: version bump to 0.25
Diffstat (limited to 'dev-python/cython')
-rw-r--r-- | dev-python/cython/Manifest | 1 | ||||
-rw-r--r-- | dev-python/cython/cython-0.25.ebuild | 81 |
2 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest index 86519f0b0abc..fee881c2f737 100644 --- a/dev-python/cython/Manifest +++ b/dev-python/cython/Manifest @@ -5,3 +5,4 @@ DIST Cython-0.23.4.tar.gz 1628326 SHA256 fec42fecee35d6cc02887f1eef4e4952c97402e DIST Cython-0.23.5.tar.gz 1629433 SHA256 0ae5a5451a190e03ee36922c4189ca2c88d1df40a89b4f224bc842d388a0d1b6 SHA512 9052d74bbd0c93757fd916939cc3c39eb1aba6c9692b48887ae577256bec64b39b1fd25b6c751e6c8fe723de4c0ddf9a1a207de39f75b0839500dfcdde69f925 WHIRLPOOL 65456464ee8484de7277b6a657938972d9d81addcfe7751f1de287d6c4429531bbc3fcd0788911cbdc5ef752bfef0d43f930bd6651e124b2a33426c092c34292 DIST Cython-0.24.1.tar.gz 1703756 SHA256 84808fda00508757928e1feadcf41c9f78e9a9b7167b6649ab0933b76f75e7b9 SHA512 c5a3e884edd782c47c81aef29708035bbcd1c14d17e005668da8a4e26fdbba9af9ec283fd46ceaa2cab6fc4ec0d42f7d409832d7cc0a3ec00e84b968b1bf27ea WHIRLPOOL 14224a56c5a6f5cd3f389225c440c65b30a5d1b92c63587c4e9af258b23b1bed1c01330830931c5aba596649d19b0aafd0e559aed5ad7b577a59417463fc3b4a DIST Cython-0.24.tar.gz 1671837 SHA256 6de44d8c482128efc12334641347a9c3e5098d807dd3c69e867fa8f84ec2a3f1 SHA512 9ac22934a4f344b02246538d8317cbecc66236e9c84d782f8121ef2e2c100de2a21cbfb55de3defcab294c71847467870e56fdb5bc38c0db0de7acd560d16e96 WHIRLPOOL 2656fcaa9520ba1de43d8e4e8d9e4d63c30fd62e34746f69c12ac19140faf48a00c98d7f50ce9b065167290d17b25e23c09889c6ab6241c97cd59970e1f09e7d +DIST Cython-0.25.tar.gz 1701330 SHA256 c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b SHA512 eafe71e4572a23ac1fb2a1461d41257eabe945036ae676f8ac1307262298eaadcd2b252bb7aa9fa061dfb1e076898e52f31fd392b5d7a90f0e766f98f9fa3f78 WHIRLPOOL 6920cb6c8fdc89bdc95a49df8fec4e899684423b92424c20fa7344bbed71130682c0e0656be00f16731f0097e04bab4a4a562bc1ead1e4a5874ae5eae5eb2de5 diff --git a/dev-python/cython/cython-0.25.ebuild b/dev-python/cython/cython-0.25.ebuild new file mode 100644 index 000000000000..44785313231c --- /dev/null +++ b/dev-python/cython/cython-0.25.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 flag-o-matic toolchain-funcs elisp-common + +MY_PN="Cython" +MY_P="${MY_PN}-${PV/_/}" + +DESCRIPTION="A Python to C compiler" +HOMEPAGE="http://cython.org https://pypi.python.org/pypi/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 ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" + +IUSE="doc emacs test" + +RDEPEND=" + emacs? ( virtual/emacs ) +" +# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs +# spanning several packages. This bug has been fixed in the recent release of version 9.1 +DEPEND="${RDEPEND} + >=dev-python/setuptools-9.1[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( dev-python/numpy[${PYTHON_USEDEP}] )" + +SITEFILE=50cython-gentoo.el +S="${WORKDIR}/${MY_PN}-${PV%_*}" + +python_compile() { + if ! python_is_python3; then + local CFLAGS="${CFLAGS}" + local CXXFLAGS="${CXXFLAGS}" + append-flags -fno-strict-aliasing + fi + + # Python gets confused when it is in sys.path before build. + local PYTHONPATH= + export PYTHONPATH + + distutils-r1_python_compile +} + +python_compile_all() { + use emacs && elisp-compile Tools/cython-mode.el + + use doc && unset XDG_CONFIG_HOME && emake -C docs html +} + +python_test() { + tc-export CC + "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ + || die "Tests fail with ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGES.rst README.txt 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 +} |