Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cython/
Date: Sat, 28 Apr 2018 19:29:58
Message-Id: 1524943781.cc601482ca08849755bc24d2b3fcccd50559f2a8.mgorny@gentoo
1 commit: cc601482ca08849755bc24d2b3fcccd50559f2a8
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 28 19:28:38 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 28 19:29:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc601482
7
8 dev-python/cython: Bump to 0.28.2
9
10 Bump to 0.28.2 release. For now, it has failing tests, pending further
11 investigation.
12
13 Closes: https://bugs.gentoo.org/show_bug.cgi?id=632519
14
15 dev-python/cython/Manifest | 1 +
16 dev-python/cython/cython-0.28.2.ebuild | 76 ++++++++++++++++++++++++++++++++++
17 2 files changed, 77 insertions(+)
18
19 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest
20 index 7bdb79ba883..f7e79cafe9f 100644
21 --- a/dev-python/cython/Manifest
22 +++ b/dev-python/cython/Manifest
23 @@ -1,2 +1,3 @@
24 DIST Cython-0.25.2.tar.gz 1703315 BLAKE2B e458604d0843afa128c6019244220bd6b3dd6653013698aa67ee2f71555f09813a8136ef92d6dc51ca38fe085e7bedc5e01d1a32bbd0885e62bd91c2e482bebd SHA512 1974b9374aeedb030307dc95aa6560ce9d5e1652783cd4552e96ef11663c73dd263e3521b68e7712abbb31628011e2e66320c5ee2577968684e2679eb80726e1
25 DIST Cython-0.26.1.tar.gz 1725133 BLAKE2B b2c0433e8154ad76d921677608cae42a793326015ff320d8cd61818e5eb5fb4daf73ad4e72760d84f4cdaa2386b87d719cf9cd41584b781d4e2021e377a58422 SHA512 cdf31afaba78209c37a224345471c5c822b78c6d26c51583c46669b6b2b57b4952b33a839a51d06c3330fdff889345ac611fbaa2b2f17498cb02f3b5675f7948
26 +DIST Cython-0.28.2.tar.gz 1878797 BLAKE2B f04ae2b39ace94f33341bdc4f5e0871d34523070345340adcbfbfb1629e5bd6e2e6db6a0cf24dc392e245fd3c4ae162eae2e14af1c5dcf20896e5d2983c1ea0a SHA512 7d09d1fdc10f96eb6121657b71e059c38c479b4ca180965a8e5adb89ac0f9be50260ea46197c45e8ddc7c1339b9b88c140dac2c4a7a49e1943fb4bf24a73d082
27
28 diff --git a/dev-python/cython/cython-0.28.2.ebuild b/dev-python/cython/cython-0.28.2.ebuild
29 new file mode 100644
30 index 00000000000..febc0f7ec46
31 --- /dev/null
32 +++ b/dev-python/cython/cython-0.28.2.ebuild
33 @@ -0,0 +1,76 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +
39 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
40 +PYTHON_REQ_USE="threads(+)"
41 +
42 +inherit distutils-r1 toolchain-funcs elisp-common
43 +
44 +MY_PN="Cython"
45 +MY_P="${MY_PN}-${PV/_/}"
46 +
47 +DESCRIPTION="A Python to C compiler"
48 +HOMEPAGE="http://cython.org https://pypi.org/project/Cython/"
49 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
50 +
51 +LICENSE="Apache-2.0"
52 +SLOT="0"
53 +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"
54 +
55 +IUSE="doc emacs test"
56 +
57 +RDEPEND="
58 + emacs? ( virtual/emacs )
59 +"
60 +DEPEND="${RDEPEND}
61 + dev-python/setuptools[${PYTHON_USEDEP}]
62 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
63 + test? ( dev-python/numpy[${PYTHON_USEDEP}] )"
64 +
65 +SITEFILE=50cython-gentoo.el
66 +S="${WORKDIR}/${MY_PN}-${PV%_*}"
67 +
68 +python_compile() {
69 + if ! python_is_python3; then
70 + local CFLAGS="${CFLAGS} -fno-strict-aliasing"
71 + local CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing"
72 + fi
73 +
74 + # Python gets confused when it is in sys.path before build.
75 + local -x PYTHONPATH=
76 +
77 + distutils-r1_python_compile
78 +}
79 +
80 +python_compile_all() {
81 + use emacs && elisp-compile Tools/cython-mode.el
82 +
83 + use doc && unset XDG_CONFIG_HOME && emake -C docs html
84 +}
85 +
86 +python_test() {
87 + tc-export CC
88 + "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
89 + || die "Tests fail with ${EPYTHON}"
90 +}
91 +
92 +python_install_all() {
93 + local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
94 + use doc && local HTML_DOCS=( docs/build/html/. )
95 + distutils-r1_python_install_all
96 +
97 + if use emacs; then
98 + elisp-install ${PN} Tools/cython-mode.*
99 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
100 + fi
101 +}
102 +
103 +pkg_postinst() {
104 + use emacs && elisp-site-regen
105 +}
106 +
107 +pkg_postrm() {
108 + use emacs && elisp-site-regen
109 +}