blob: 6364a28cbc523c8f8dd8c4db407697c36694c390 (
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-0.9.6-r1.ebuild,v 1.2 2006/06/13 23:32:22 spyderous Exp $
inherit eutils distutils
DESCRIPTION="Numpy contains a powerful N-dimensional array object for Python."
SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz"
HOMEPAGE="http://numeric.scipy.org/"
DEPEND=">=dev-lang/python-2.3
lapack? ( virtual/blas
virtual/lapack )"
IUSE="lapack"
SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${PV}-recognize-more-gfortran-versions.patch
cd "${S}"
# note the default are fine to use with
# blas/lapack reference and mkl.
if use lapack; then
echo "[atlas]" > site.cfg
echo "atlas_libs = lapack, blas, cblas, atlas" >> site.cfg
else
echo "[DEFAULT]" > site.cfg
echo "library_dirs =" >> site.cfg
echo "include_dirs =" >> site.cfg
echo "src_dirs =" >> site.cfg
echo "[blas_opt] =" >> site.cfg
echo "[lapack_opt] =" >> site.cfg
fi
}
# he test only works after install
# to be worked out.
#src_test() {
# python -c "import numpy; numpy.test()" || \
# die "test failed!"
#}
src_install() {
distutils_src_install
dodoc numpy/doc/*
}
|