aboutsummaryrefslogtreecommitdiff
blob: 1c4917f2b1760fb857208cb44ad8c3d54563acd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.*"
DISTUTILS_SRC_TEST="nosetests"

inherit distutils flag-o-matic fortran-2 toolchain-funcs

DESCRIPTION="Collection of Python modules for statistical inference"
HOMEPAGE="http://inference.astro.cornell.edu/"
SRC_URI="${HOMEPAGE}/${P}.tar.gz"

SLOT="0"
LICENSE="as-is"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
	sci-libs/scipy
	virtual/fortran"
RDEPEND="${DEPEND}
	dev-python/matplotlib"

# buggy tests
RESTRICT="test"

pkg_setup() {
	fortran-2_pkg_setup
	# The usual numpy.distutils hacks when fortran is used
	append-ldflags -shared
	append-fflags -fPIC
	export NUMPY_FCONFIG="config_fc --noopt --noarch"
}

src_compile() {
	distutils_src_compile ${NUMPY_CONFIG}
}

src_install() {
	distutils_src_install ${NUMPY_FCONFIG}
}