diff options
author | 2006-04-11 07:51:43 +0000 | |
---|---|---|
committer | 2006-04-11 07:51:43 +0000 | |
commit | b252db9bba8730622a669fc94372c4b722b94c8a (patch) | |
tree | 4eebe95a7b6ead41d3e1568de49476fe9388862b /dev-python/numpy | |
parent | pruned old numpy and added numpy-0.9.6-r1 (diff) | |
download | sci-b252db9bba8730622a669fc94372c4b722b94c8a.tar.gz sci-b252db9bba8730622a669fc94372c4b722b94c8a.tar.bz2 sci-b252db9bba8730622a669fc94372c4b722b94c8a.zip |
added numpy-0.9.6-r1
git-svn-id: http://overlays.gentoo.org/svn/proj/science/overlay@155 32389bae-6d03-0410-99cf-db05cde120eb
Diffstat (limited to 'dev-python/numpy')
-rw-r--r-- | dev-python/numpy/files/digest-numpy-0.9.6-r1 | 1 | ||||
-rw-r--r-- | dev-python/numpy/numpy-0.9.6-r1.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/numpy/files/digest-numpy-0.9.6-r1 b/dev-python/numpy/files/digest-numpy-0.9.6-r1 new file mode 100644 index 000000000..c1ad4cdc2 --- /dev/null +++ b/dev-python/numpy/files/digest-numpy-0.9.6-r1 @@ -0,0 +1 @@ +MD5 eac9ae05bd7511cecf1ffd12da0e1993 numpy-0.9.6.tar.gz 951680 diff --git a/dev-python/numpy/numpy-0.9.6-r1.ebuild b/dev-python/numpy/numpy-0.9.6-r1.ebuild new file mode 100644 index 000000000..4f31bf3f5 --- /dev/null +++ b/dev-python/numpy/numpy-0.9.6-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit distutils + +DESCRIPTION="Powerful N-dimensional array object and processing for Python." +SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz" +HOMEPAGE="http://numeric.scipy.org/" +# temp fix force atlas, while eselect gets ready. +DEPEND=">=dev-lang/python-2.3 + lapack? ( sci-libs/blas-atlas ) + lapack? ( sci-libs/lapack-atlas )" +IUSE="lapack" +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="BSD" + +src_unpack() { + unpack ${A} + cd "${S}" + + # sed to patch ATLAS libraries names + sed -i \ + -e "s:f77blas: blas:g" \ + -e "s:'f77blas':'blas':g" \ + numpy/distutils/system_info.py + + # + export MKL=None + export BLAS=None + export LAPACK=None + export PTATLAS=None + + 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/* +} |