diff options
-rw-r--r-- | sci-libs/scipy/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/scipy/scipy-0.4.4.ebuild | 17 |
2 files changed, 16 insertions, 3 deletions
diff --git a/sci-libs/scipy/Manifest b/sci-libs/scipy/Manifest index c83934456..18fcef76f 100644 --- a/sci-libs/scipy/Manifest +++ b/sci-libs/scipy/Manifest @@ -1,4 +1,4 @@ MD5 905b6ba15324c6c0733a99ced6995e40 ChangeLog 563 MD5 a949de96fef5b6758302142a51404cce files/digest-scipy-0.4.4 64 MD5 51dd57e78f009510e5b3a8384723e22d metadata.xml 686 -MD5 395b232c3ab82b062abb9d64aa9fe25d scipy-0.4.4.ebuild 912 +MD5 6ee78283245d2fa4de4a4065a6058e3e scipy-0.4.4.ebuild 1389 diff --git a/sci-libs/scipy/scipy-0.4.4.ebuild b/sci-libs/scipy/scipy-0.4.4.ebuild index dcba7b5ca..dc4694ba9 100644 --- a/sci-libs/scipy/scipy-0.4.4.ebuild +++ b/sci-libs/scipy/scipy-0.4.4.ebuild @@ -13,11 +13,11 @@ SLOT="0" IUSE="fftw" KEYWORDS="~x86" #keyworded to x86 only because of numpy - +#could use any lapack, but it seems that lapack-atlas provides non-f2c clapack routines RDEPEND=">=dev-lang/python-2.3.3 >=dev-python/numpy-0.9.2 virtual/blas - virtual/lapack + sci-libs/lapack-atlas fftw? ( =sci-libs/fftw-2.1* )" # install doc claims fftw-2 is faster for complex ffts. @@ -28,8 +28,21 @@ RDEPEND=">=dev-lang/python-2.3.3 FORTRAN="g77" DEPEND="${RDEPEND} + app-admin/eselect =sys-devel/gcc-3*" +pkg_setup() { + if [ -z "$(/usr/bin/eselect lapack show | grep ATLAS)" ]; then + eerror "You need to set lapack-atlas to use this version of scipy" + einfo "Please run:" + einfo "\teselect lapack set ATLAS" + einfo "or, if you have the threaded version:" + einfo "\teselect lapack set threaded-ATLAS" + einfo "And re-emerge scipy" + die "setup failed" + fi +} + src_test() { einfo "Testing installation ..." python -c "import scipy; scipy.test(level=1)" || \ |