blob: 9eea76a2786b78e1c40b0c3f75def4fa7cff2e94 (
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
47
48
49
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.0_beta2.ebuild,v 1.1 2006/08/16 10:44:27 liquidx Exp $
inherit distutils
MY_P=${P/_beta/b}
DESCRIPTION="Multi-dimensional array object and processing for Python."
SRC_URI="mirror://sourceforge/numpy/${MY_P}.tar.gz"
HOMEPAGE="http://numeric.scipy.org/"
# numpy provides the latest version of dev-python/f2py
DEPEND=">=dev-lang/python-2.3
!dev-python/f2py
lapack? ( virtual/blas
virtual/lapack )"
IUSE="lapack"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
LICENSE="BSD"
RESTRICT="test"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
# sed to patch ATLAS libraries names (gentoo specific)
sed -i \
-e "s:f77blas:blas:g" \
numpy/distutils/system_info.py
if use lapack; then
echo "[atlas]" > site.cfg
echo "include_dirs = /usr/include/atlas" >> site.cfg
echo "atlas_libs = lapack, blas, cblas, atlas" >> site.cfg
echo -n "library_dirs = /usr/$(get_libdir)/lapack:" >> site.cfg
if [ -d "/usr/$(get_libdir)/blas/threaded-atlas" ]; then
echo "/usr/$(get_libdir)/blas/threaded-atlas" >> site.cfg
else
echo "/usr/$(get_libdir)/blas/atlas" >> site.cfg
fi
else
export ATLAS=None
fi
}
src_install() {
distutils_src_install
dodoc numpy/doc/*
}
|