Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/numba: numba-0.20.0.ebuild ChangeLog
Date: Mon, 06 Jul 2015 05:53:25
Message-Id: 20150706055311.876DF74C@oystercatcher.gentoo.org
1 patrick 15/07/06 05:53:11
2
3 Modified: ChangeLog
4 Added: numba-0.20.0.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.19 dev-python/numba/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numba/ChangeLog?rev=1.19&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numba/ChangeLog?rev=1.19&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numba/ChangeLog?r1=1.18&r2=1.19
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/numba/ChangeLog,v
20 retrieving revision 1.18
21 retrieving revision 1.19
22 diff -u -r1.18 -r1.19
23 --- ChangeLog 28 Jun 2015 10:06:51 -0000 1.18
24 +++ ChangeLog 6 Jul 2015 05:53:11 -0000 1.19
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/numba
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/numba/ChangeLog,v 1.18 2015/06/28 10:06:51 idella4 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/numba/ChangeLog,v 1.19 2015/07/06 05:53:11 patrick Exp $
30 +
31 +*numba-0.20.0 (06 Jul 2015)
32 +
33 + 06 Jul 2015; Patrick Lauer <patrick@g.o> +numba-0.20.0.ebuild:
34 + Bump
35
36 *numba-0.19.2 (28 Jun 2015)
37
38
39
40
41 1.1 dev-python/numba/numba-0.20.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numba/numba-0.20.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numba/numba-0.20.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: numba-0.20.0.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/numba/numba-0.20.0.ebuild,v 1.1 2015/07/06 05:53:11 patrick Exp $
51
52 EAPI=5
53
54 # test phase is pointless since it errors in circa 60% of 1984 tests
55 RESTRICT="test"
56
57 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
58
59 inherit distutils-r1
60
61 DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
62 HOMEPAGE="http://numba.pydata.org/"
63 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68
69 IUSE="doc examples test"
70
71 RDEPEND="
72 dev-python/llvmlite[${PYTHON_USEDEP}]
73 >=dev-python/numpy-1.6[${PYTHON_USEDEP}]
74 $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python{2_7,3_3})
75 $(python_gen_cond_dep 'dev-python/funcsigs[${PYTHON_USEDEP}]' python2_7)"
76 DEPEND="test? ( ${RDEPEND} )
77 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
78
79 # Delete intersphinx & entry to set sphinxjp.themecore, which is absent from portage, from conf.py
80 PATCHES=( "${FILESDIR}"/${PN}-0.19.2-docbuild.patch )
81
82 python_prepare_all() {
83 # Re-set them of doc build to one provided by sphinx
84 if has_version ">=dev-python/sphinx-1.3.1"; then
85 sed -e 's:basicstrap:classic:' -i docs/source/conf.py || die
86 else
87 sed -e 's:basicstrap:default:' -i docs/source/conf.py || die
88 fi
89 distutils-r1_python_prepare_all
90 }
91
92 python_compile() {
93 if ! python_is_python3; then
94 local CFLAGS="${CFLAGS} -fno-strict-aliasing"
95 export CFLAGS
96 fi
97 distutils-r1_python_compile
98 }
99
100 python_compile_all() {
101 use doc && emake -C docs/ html
102 }
103
104 python_test() {
105 cd "${BUILD_DIR}"/lib* || die
106 ${PYTHON} -c "import numba; numba.test()" || die
107 }
108
109 python_install_all() {
110 # doc needs obsolete sphinxjp package
111 # use doc && dodoc docs/Numba.pdf
112 use examples && local EXAMPLES=( examples/. )
113 use doc && local HTML_DOCS=( docs/_build/html/. )
114
115 distutils-r1_python_install_all
116 }