# Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit distutils MY_PN="SciPy_complete-${PV}" SRC_URI="http://www.scipy.org/download/scipy/src/${MY_PN}.tar.gz" DESCRIPTION="Open source scientific tools for Python" HOMEPAGE="http://www.scipy.org/" LICENSE="BSD" SLOT="0" IUSE="fftw wxwindows" # ?? swig vtk KEYWORDS="~x86" S="${WORKDIR}/${MY_PN}" # gcc must be built with USE=f77 or atlas will fail! DEPEND=">=dev-lang/python-2.3.3 >=dev-python/numeric-23.3 >=sys-devel/gcc-3 >=dev-libs/atlas-3.6.0 >=dev-python/imaging-1.1.4 >=app-sci/lapack-atlas-3.2.1 >=dev-python/f2py-2.39.235.1693 fftw? ( =dev-libs/fftw-2.1* ) wxwindows? ( >=dev-python/wxpython-2.4 )" src_install() { # base class distutils_src_install # Extra docs dodoc `ls *.txt` } pkg_postinst() { # Base class distutils_pkg_postinst # Unit testing -- good form in the Python world einfo "Testing installation ..." python -c "import scipy; scipy.test(level=1)" || die "Unit tests failed!" # A helpful message re. plotting einfo "Emerge media-gfx/gnuplot to use the 'gplt' plotting facility" [ `use wxwindows` ] || \ einfo "Set USE=wxwindows and re-emerge to use the newer 'plt' plotter" }