Gentoo Archives: gentoo-commits

From: "Mike Gilbert (floppym)" <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/cython: cython-0.15.1-r1.ebuild cython-0.14.1-r1.ebuild ChangeLog
Date: Sat, 31 Mar 2012 19:13:40
Message-Id: 20120331191310.BE2382004B@flycatcher.gentoo.org
1 floppym 12/03/31 19:13:10
2
3 Modified: ChangeLog
4 Added: cython-0.15.1-r1.ebuild cython-0.14.1-r1.ebuild
5 Log:
6 Make cython wrapper respect EPYTHON. Ported from Progress.
7
8 (Portage version: 2.2.0_alpha96/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.75 dev-python/cython/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?rev=1.75&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?rev=1.75&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?r1=1.74&r2=1.75
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v
20 retrieving revision 1.74
21 retrieving revision 1.75
22 diff -u -r1.74 -r1.75
23 --- ChangeLog 20 Feb 2012 10:04:45 -0000 1.74
24 +++ ChangeLog 31 Mar 2012 19:13:10 -0000 1.75
25 @@ -1,6 +1,13 @@
26 # ChangeLog for dev-python/cython
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.74 2012/02/20 10:04:45 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.75 2012/03/31 19:13:10 floppym Exp $
30 +
31 +*cython-0.15.1-r1 (31 Mar 2012)
32 +*cython-0.14.1-r1 (31 Mar 2012)
33 +
34 + 31 Mar 2012; Mike Gilbert <floppym@g.o> +cython-0.14.1-r1.ebuild,
35 + +cython-0.15.1-r1.ebuild:
36 + Make cython wrapper respect EPYTHON. Ported from Progress.
37
38 20 Feb 2012; Patrick Lauer <patrick@g.o> cython-0.14.1.ebuild,
39 cython-0.15.1.ebuild:
40
41
42
43 1.1 dev-python/cython/cython-0.15.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.15.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.15.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: cython-0.15.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.15.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
53
54 EAPI="3"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
57
58 inherit distutils eutils
59
60 MY_PN="Cython"
61 MY_P="${MY_PN}-${PV/_/}"
62
63 DESCRIPTION="Compiler for writing C extensions for the Python language"
64 HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
65 SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
66
67 LICENSE="Apache-2.0"
68 SLOT="0"
69 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
70 IUSE="doc examples numpy"
71
72 DEPEND="numpy? ( >=dev-python/numpy-1.6.1-r1 )"
73 RDEPEND="${DEPEND}"
74
75 S="${WORKDIR}/${MY_PN}-${PV%_*}"
76
77 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
78
79 DOCS="README.txt ToDo.txt USAGE.txt"
80 PYTHON_MODNAME="Cython cython.py pyximport"
81
82 src_prepare() {
83 epatch "${FILESDIR}"/${PV}-test.patch
84 }
85
86 src_test() {
87 testing() {
88 "$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
89 }
90 python_execute_function testing
91 }
92
93 src_install() {
94 distutils_src_install
95 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
96
97 if use doc; then
98 # "-A c" is for ignoring of "Doc/primes.c".
99 dohtml -A c -r Doc/* || die "Installation of documentation failed"
100 fi
101
102 if use examples; then
103 insinto /usr/share/doc/${PF}/examples
104 doins -r Demos/* || die "Installation of examples failed"
105 fi
106 }
107
108
109
110 1.1 dev-python/cython/cython-0.14.1-r1.ebuild
111
112 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild?rev=1.1&view=markup
113 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild?rev=1.1&content-type=text/plain
114
115 Index: cython-0.14.1-r1.ebuild
116 ===================================================================
117 # Copyright 1999-2012 Gentoo Foundation
118 # Distributed under the terms of the GNU General Public License v2
119 # $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.14.1-r1.ebuild,v 1.1 2012/03/31 19:13:10 floppym Exp $
120
121 EAPI="3"
122 SUPPORT_PYTHON_ABIS="1"
123 RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*"
124
125 inherit distutils
126
127 MY_PN="Cython"
128 MY_P="${MY_PN}-${PV/_/}"
129
130 DESCRIPTION="The Cython compiler for writing C extensions for the Python language"
131 HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
132 SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
133
134 LICENSE="Apache-2.0"
135 SLOT="0"
136 KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris"
137 IUSE="doc examples"
138
139 DEPEND=""
140 RDEPEND=""
141
142 S="${WORKDIR}/${MY_P}"
143
144 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
145
146 DOCS="README.txt ToDo.txt USAGE.txt"
147 PYTHON_MODNAME="Cython cython.py pyximport"
148
149 src_test() {
150 testing() {
151 "$(PYTHON)" runtests.py -vv --work-dir tests-${PYTHON_ABI}
152 }
153 python_execute_function testing
154 }
155
156 src_install() {
157 distutils_src_install
158 python_generate_wrapper_scripts -E -f -q "${ED}usr/bin/cython"
159
160 if use doc; then
161 # "-A c" is for ignoring of "Doc/primes.c".
162 dohtml -A c -r Doc/* || die "Installation of documentation failed"
163 fi
164
165 if use examples; then
166 insinto /usr/share/doc/${PF}/examples
167 doins -r Demos/* || die "Installation of examples failed"
168 fi
169 }