blob: 14b111cd0cc6fa8325bb83c58ba1113e22299134 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 2005-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.3.2.ebuild,v 1.2 2005/10/31 09:08:39 pbienst Exp $
inherit distutils fortran
MY_P="SciPy_complete-${PV}"
SRC_URI="http://www.scipy.org/download/scipy/src/${MY_P}.tar.gz"
DESCRIPTION="Open source scientific tools for Python"
HOMEPAGE="http://www.scipy.org/"
LICENSE="BSD"
SLOT="0"
IUSE="fftw wxwindows"
KEYWORDS="~x86"
S="${WORKDIR}/${MY_P}"
FORTAN="g77"
DEPEND=">=dev-lang/python-2.3.3
>=dev-python/numeric-21.0
>=sys-devel/gcc-3
virtual/lapack
virtual/blas
>=dev-python/f2py-2.39.235.1644
fftw? ( =sci-libs/fftw-2.1* )
wxwindows? ( >=dev-python/wxpython-2.4 )"
RDEPEND=">=dev-lang/python-2.3.3
>=dev-python/numeric-21.0
virtual/lapack
virtual/blas
fftw? ( =sci-libs/fftw-2.1* )
wxwindows? ( >=dev-python/wxpython-2.4 )"
src_unpack() {
unpack ${A} || die
cd ${S}
epatch ${FILESDIR}/system_info.diff
}
src_test() {
einfo "Testing installation ..."
python -c "import scipy; scipy.test(level=1)" || \
die "Unit tests failed!"
}
src_install() {
distutils_src_install
dodoc `ls *.txt`
}
pkg_postinst() {
distutils_pkg_postinst
einfo ""
einfo "Emerge media-gfx/gnuplot to use the 'gplt' plotting facility."
if use wxwindows; then
einfo "Set USE=wxwindows and reemerge to use the newer 'plt' plotter."
fi
einfo ""
}
|