aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-03-22 19:21:01 +0000
committerbicatali <bicatali@32389bae-6d03-0410-99cf-db05cde120eb>2006-03-22 19:21:01 +0000
commitd1213aa8cdaff900136d499a1783d536ca2c9245 (patch)
tree2ba9ebdfd78bcc3b46b2e056ef7d2589df5a802f /dev-python/numarray
parentopenmpi-1.0.1.ebuild: fix USE flags, links (diff)
downloadsci-d1213aa8cdaff900136d499a1783d536ca2c9245.tar.gz
sci-d1213aa8cdaff900136d499a1783d536ca2c9245.tar.bz2
sci-d1213aa8cdaff900136d499a1783d536ca2c9245.zip
numarray-1.5.1-r1.ebuild: put lapack sed in src_unpack
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@143 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'dev-python/numarray')
-rw-r--r--dev-python/numarray/Manifest2
-rw-r--r--dev-python/numarray/numarray-1.5.1-r1.ebuild21
2 files changed, 15 insertions, 8 deletions
diff --git a/dev-python/numarray/Manifest b/dev-python/numarray/Manifest
index e8e19dab1..28f88721e 100644
--- a/dev-python/numarray/Manifest
+++ b/dev-python/numarray/Manifest
@@ -1,3 +1,3 @@
MD5 a5f065f4ab47e9e322aa860a0bcaeef2 ChangeLog 2431
MD5 3b253945667c1a85499157ac13dd220c files/digest-numarray-1.5.1-r1 67
-MD5 d308cc247837f37833ec0c80746e8a4d numarray-1.5.1-r1.ebuild 1006
+MD5 c0d179b38525d0edd04153b5f207d79d numarray-1.5.1-r1.ebuild 1104
diff --git a/dev-python/numarray/numarray-1.5.1-r1.ebuild b/dev-python/numarray/numarray-1.5.1-r1.ebuild
index ccc268c01..b65eff376 100644
--- a/dev-python/numarray/numarray-1.5.1-r1.ebuild
+++ b/dev-python/numarray/numarray-1.5.1-r1.ebuild
@@ -16,21 +16,28 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
LICENSE="BSD"
-src_compile() {
-
- local myconf="--genapi"
+src_unpack() {
+ unpack ${A};
+ cd ${S}
if use lapack; then
+ local myblas="/usr/$(get_libdir)/blas/atlas"
+ [ -d "/usr/$(get_libdir)/blas/threaded-atlas" ] && \
+ myblas=${myblas/threaded-/}
sed -i cfg_packages.py \
- -e 's:/usr/local/lib/atlas:/usr/lib/blas/atlas:g' \
+ -e 's:/usr/local/lib/atlas:${myblas}:g' \
-e 's:/usr/local/include/atlas:/usr/include/atlas:g' \
-e 's:f77blas:blas:g'
- myconf="${myconf} --use_lapack"
fi
- python setup.py build ${myconf} || die "build failed"
+}
+
+src_compile() {
+ export USE_LAPACK=1
+ distutils_src_compile
}
src_install() {
distutils_src_install
dodoc Doc/*.txt LICENSE.txt
- cp -r Doc/*.py Doc/manual Doc/release_notes Examples ${D}/usr/share/doc/${PF}
+ cp -r Doc/*.py Doc/manual Doc/release_notes \
+ Examples ${D}/usr/share/doc/${PF}
}