/[gentoo-x86]/dev-python/numba/numba-0.18.2.ebuild
Gentoo

Contents of /dev-python/numba/numba-0.18.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Jun 2 15:29:32 2015 UTC (5 years, 2 months ago) by idella4
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
whitespace

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/numba/numba-0.18.2.ebuild,v 1.2 2015/06/02 15:27:12 idella4 Exp $
4
5 EAPI=5
6
7 # test phase is pointless since it errors in circa 60% of 1984 tests
8 RESTRICT="test"
9
10 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
11
12 inherit distutils-r1
13
14 DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
15 HOMEPAGE="http://numba.pydata.org/"
16 SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17
18 LICENSE="BSD"
19 SLOT="0"
20 KEYWORDS="~amd64 ~x86"
21
22 IUSE="doc examples test"
23
24 RDEPEND="
25 dev-python/llvmlite[${PYTHON_USEDEP}]
26 >=dev-python/numpy-1.6[${PYTHON_USEDEP}]
27 $(python_gen_cond_dep 'dev-python/enum34[${PYTHON_USEDEP}]' python{2_7,3_3})
28 $(python_gen_cond_dep 'dev-python/funcsigs[${PYTHON_USEDEP}]' python2_7)"
29 DEPEND="test? ( ${RDEPEND} )"
30
31 python_compile() {
32 if ! python_is_python3; then
33 local CFLAGS="${CFLAGS} -fno-strict-aliasing"
34 export CFLAGS
35 fi
36 distutils-r1_python_compile
37 }
38
39 python_test() {
40 cd "${BUILD_DIR}"/lib* || die
41 ${PYTHON} -c "import numba; numba.test()" || die
42 }
43
44 python_install_all() {
45 # doc needs obsolete sphnxjp package
46 use doc && dodoc docs/Numba.pdf
47 use examples && local EXAMPLES=( examples/. )
48
49 distutils-r1_python_install_all
50 }

  ViewVC Help
Powered by ViewVC 1.1.20