# Copyright 2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit subversion inherit distutils inherit eutils SRC_URI="" DESCRIPTION="Open source scientific tools for Python" HOMEPAGE="http://www.scipy.org/" LICENSE="BSD" SLOT="0" IUSE="fftw wxwindows" KEYWORDS="~x86 amd64" RESTRICT="nomirror" #S="${WORKDIR}/${MY_PN}" ESVN_REPO_URI="http://svn.scipy.org/svn/scipy/trunk" ESVN_PROJECT="scipy" # gcc must be built with USE=f77 or atlas will fail! DEPEND=">=sci-libs/scipy-core-svn-${PV} >=dev-lang/python-2.3.3 >=dev-python/numeric-21.0 >=sys-devel/gcc-3 >=sci-libs/blas-atlas-3.6.0 >=sci-libs/lapack-atlas-3.6.0 fftw? ( =sci-libs/fftw-2.1* ) wxwindows? ( >=dev-python/wxpython-2.4 )" src_unpack() { # scipy needs the .svn directory cp -r ${ESVN_STORE_DIR}/scipy/trunk ${S}/ } 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" }