1 |
commit: 41c7f11439d1eac399c24550d8b8ab1a9894594b |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 31 11:34:13 2016 +0000 |
4 |
Commit: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 31 11:34:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41c7f114 |
7 |
|
8 |
dev-python/cython: Bump |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-python/cython/Manifest | 1 + |
13 |
dev-python/cython/cython-0.23.5.ebuild | 82 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 83 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest |
17 |
index f4cbc00..a5bd20d 100644 |
18 |
--- a/dev-python/cython/Manifest |
19 |
+++ b/dev-python/cython/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST Cython-0.22.tar.gz 1584483 SHA256 14307e7a69af9a0d0e0024d446af7e51cc0e3e4d0 |
21 |
DIST Cython-0.23.2.tar.gz 1627642 SHA256 85a8713db65d9ad3e7e2f01e6ac424d4ae2a40349f1391b2b0f494ccb7e0fda7 SHA512 ae1d20f3efc2ae9eeb73d1d536895992280b4b3222bd6911bae886971cb222c98a581a770c48d65ec1fa40cfa7b7639580fe86e4986b5fba5c9257d351dfc1a3 WHIRLPOOL c019b43508104f0ce9375b1eed740d9bf4ba9bdff66fccbc4b272f61a9899327d1e3a1026215f4014db89aefb0f69caafd4e055271cd67500b95ad3fb3ab5263 |
22 |
DIST Cython-0.23.3.tar.gz 1628634 SHA256 590274ac8dbd1e62cc79d94eb2e2f4ae60cea91a9f8d50b8697d39aba451e82e SHA512 93d02fb7009fe005a91ccf83a3428c449e46c4ff913993e71affdee5a4155d932dcf93238fb85194f44c8b5dd7acd3e3dd83e86b407e4c41e6895abf1f3499ae WHIRLPOOL aa3a289f10608628991b368e9a6bda0821c5f957d1536963e7336ee81e04f554bb7fcce8c2bab429bde1ef7d1490a75770a45caec83d809aaf41f60b36f37924 |
23 |
DIST Cython-0.23.4.tar.gz 1628326 SHA256 fec42fecee35d6cc02887f1eef4e4952c97402ed2800bfe41bbd9ed1a0730d8e SHA512 67f4d2be22def78318e8d3edc99b944c50291dc812064b0c8829dd453881bb288037087ee8472b161b9624ac13a50ece71a0d7560c9f2f7d94cc6fcad107e749 WHIRLPOOL f92dfc40080bb005bfdf220d8dc65c40b9ffa1e29b7c0c3e5c4e165f653f9b443af70191a3f7498777db07b9353147334d542e5e46109d4452f548d411d979dc |
24 |
+DIST Cython-0.23.5.tar.gz 1629433 SHA256 0ae5a5451a190e03ee36922c4189ca2c88d1df40a89b4f224bc842d388a0d1b6 SHA512 9052d74bbd0c93757fd916939cc3c39eb1aba6c9692b48887ae577256bec64b39b1fd25b6c751e6c8fe723de4c0ddf9a1a207de39f75b0839500dfcdde69f925 WHIRLPOOL 65456464ee8484de7277b6a657938972d9d81addcfe7751f1de287d6c4429531bbc3fcd0788911cbdc5ef752bfef0d43f930bd6651e124b2a33426c092c34292 |
25 |
|
26 |
diff --git a/dev-python/cython/cython-0.23.5.ebuild b/dev-python/cython/cython-0.23.5.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..7bf82a9 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/cython/cython-0.23.5.ebuild |
31 |
@@ -0,0 +1,82 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI=5 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit distutils-r1 flag-o-matic toolchain-funcs elisp-common |
42 |
+ |
43 |
+MY_PN="Cython" |
44 |
+MY_P="${MY_PN}-${PV/_/}" |
45 |
+ |
46 |
+DESCRIPTION="A Python to C compiler" |
47 |
+HOMEPAGE="http://www.cython.org/ https://pypi.python.org/pypi/Cython" |
48 |
+SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="Apache-2.0" |
51 |
+SLOT="0" |
52 |
+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" |
53 |
+ |
54 |
+IUSE="doc examples emacs test" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ emacs? ( virtual/emacs ) |
58 |
+" |
59 |
+# On testing, setuptools invokes an error in running the testsuite cited in a number of recent bugs |
60 |
+# spanning several packages. This bug has been fixed in the recent release of version 9.1 |
61 |
+DEPEND="${RDEPEND} |
62 |
+ >=dev-python/setuptools-9.1[${PYTHON_USEDEP}] |
63 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
64 |
+ test? ( dev-python/numpy[${PYTHON_USEDEP}] )" |
65 |
+ |
66 |
+SITEFILE=50cython-gentoo.el |
67 |
+S="${WORKDIR}/${MY_PN}-${PV%_*}" |
68 |
+ |
69 |
+python_compile() { |
70 |
+ if ! python_is_python3; then |
71 |
+ local CFLAGS="${CFLAGS}" |
72 |
+ local CXXFLAGS="${CXXFLAGS}" |
73 |
+ append-flags -fno-strict-aliasing |
74 |
+ fi |
75 |
+ |
76 |
+ # Python gets confused when it is in sys.path before build. |
77 |
+ local PYTHONPATH= |
78 |
+ export PYTHONPATH |
79 |
+ |
80 |
+ distutils-r1_python_compile |
81 |
+} |
82 |
+ |
83 |
+python_compile_all() { |
84 |
+ use emacs && elisp-compile Tools/cython-mode.el |
85 |
+ |
86 |
+ use doc && unset XDG_CONFIG_HOME && emake -C docs html |
87 |
+} |
88 |
+ |
89 |
+python_test() { |
90 |
+ tc-export CC |
91 |
+ "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \ |
92 |
+ || die "Tests fail with ${EPYTHON}" |
93 |
+} |
94 |
+ |
95 |
+python_install_all() { |
96 |
+ local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt ) |
97 |
+ use doc && local HTML_DOCS=( docs/build/html/. ) |
98 |
+ use examples && local EXAMPLES=( Demos/. ) |
99 |
+ distutils-r1_python_install_all |
100 |
+ |
101 |
+ if use emacs; then |
102 |
+ elisp-install ${PN} Tools/cython-mode.* |
103 |
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
104 |
+ fi |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ use emacs && elisp-site-regen |
109 |
+} |
110 |
+ |
111 |
+pkg_postrm() { |
112 |
+ use emacs && elisp-site-regen |
113 |
+} |