--- scipy_sandbox-20071020.p2/spkg-install.orig 2008-02-04 10:32:16.000000000 +1300 +++ scipy_sandbox-20071020.p2/spkg-install.orig 2008-02-04 10:32:45.000000000 +1300 @@ -1,26 +1,21 @@ #!/bin/sh ##### probably not necessary but just to be safe###### -if [ `uname` = "Darwin" ]; then - unset ATLAS - unset BLAS - unset LAPACK -else - ATLAS="$SAGE_LOCAL" - export ATLAS - BLAS="$SAGE_LOCAL" - export BLAS - LAPACK="$SAGE_LOCAL" - export LAPACK -fi +# Setting for Gentoo external atlas +ATLAS="/usr/lib/blas/atlas" +export ATLAS +BLAS="/usr/lib/blas/atlas" +export BLAS +LAPACK="/usr/lib/lapack/atlas" +export LAPACK ##################################################### cp ./patches/setup.py.arpack arpack/setup.py cp ./patches/arpack.py arpack cd arpack -python setup.py install +python setup.py install --prefix=$SAGE_LOCAL -if [ $? -ne 0 ]; then +if [ $? -ne 0 ]; then echo "Error building arpack \n" exit 1 fi