Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/cython: cython-0.20.ebuild ChangeLog
Date: Thu, 23 Jan 2014 08:03:51
Message-Id: 20140123080346.C1F852004C@flycatcher.gentoo.org
1 radhermit 14/01/23 08:03:46
2
3 Modified: ChangeLog
4 Added: cython-0.20.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
9
10 Revision Changes Path
11 1.106 dev-python/cython/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?rev=1.106&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?rev=1.106&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/ChangeLog?r1=1.105&r2=1.106
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v
20 retrieving revision 1.105
21 retrieving revision 1.106
22 diff -u -r1.105 -r1.106
23 --- ChangeLog 7 Dec 2013 10:26:12 -0000 1.105
24 +++ ChangeLog 23 Jan 2014 08:03:46 -0000 1.106
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/cython
27 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.105 2013/12/07 10:26:12 hattya Exp $
29 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/ChangeLog,v 1.106 2014/01/23 08:03:46 radhermit Exp $
31 +
32 +*cython-0.20 (23 Jan 2014)
33 +
34 + 23 Jan 2014; Tim Harder <radhermit@g.o> +cython-0.20.ebuild:
35 + Version bump.
36
37 07 Dec 2013; Akinori Hattori <hattya@g.o> cython-0.19.1.ebuild:
38 ia64 stable
39
40
41
42 1.1 dev-python/cython/cython-0.20.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.20.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/cython/cython-0.20.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cython-0.20.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.20.ebuild,v 1.1 2014/01/23 08:03:46 radhermit Exp $
52
53 EAPI=5
54 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} pypy2_0 )
55
56 inherit distutils-r1 flag-o-matic
57
58 MY_PN="Cython"
59 MY_P="${MY_PN}-${PV/_/}"
60
61 DESCRIPTION="A Python to C compiler"
62 HOMEPAGE="http://www.cython.org/ http://pypi.python.org/pypi/Cython"
63 SRC_URI="http://www.cython.org/release/${MY_P}.tar.gz"
64
65 LICENSE="Apache-2.0"
66 SLOT="0"
67 KEYWORDS="~alpha ~amd64 ~arm ~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 ~x86-solaris ~x64-solaris"
68 IUSE="doc test"
69
70 RDEPEND=""
71 DEPEND="${RDEPEND}
72 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
73 test? ( dev-python/numpy[$(python_gen_usedep python{2_6,2_7,3_2,3_3})] )"
74
75 S="${WORKDIR}/${MY_PN}-${PV%_*}"
76
77 python_compile() {
78 if [[ ${EPYTHON} == python2* ]]; then
79 local CFLAGS CXXFLAGS
80 append-flags -fno-strict-aliasing
81 fi
82
83 # Python gets confused when it is in sys.path before build.
84 local PYTHONPATH
85 export PYTHONPATH
86
87 distutils-r1_python_compile
88 }
89
90 python_compile_all() {
91 use doc && emake -C docs html
92 }
93
94 python_test() {
95 "${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests \
96 || die "Tests fail with ${EPYTHON}"
97 }
98
99 python_install_all() {
100 local DOCS=( CHANGES.rst README.txt ToDo.txt USAGE.txt )
101 use doc && local HTML_DOCS=( docs/build/html/. )
102
103 distutils-r1_python_install_all
104 }