blob: cdc535ffd2f0e92d669f73ba376a5b5971f9c6af (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.6.1.ebuild,v 1.1 2007/10/17 11:27:51 bicatali Exp $
MY_PN=ScientificPython
DV=1034 # hardcoded download version
inherit eutils distutils
DESCRIPTION="Scientific Module for Python"
SRC_URI="http://sourcesup.cru.fr/frs/download.php/${DV}/${MY_PN}-${PV}.tar.gz"
HOMEPAGE="http://dirac.cnrs-orleans.fr/ScientificPython/"
SLOT="0"
LICENSE="CeCILL-2"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
IUSE="mpi doc"
DEPEND=">=dev-python/numeric-23.8
>=sci-libs/netcdf-3.0
mpi? ( virtual/mpi )"
S="${WORKDIR}/${MY_PN}-2.6"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-mpi.patch
}
src_compile() {
distutils_src_compile
if use mpi; then
cd Src/MPI
"${python}" compile.py || die "compile mpi failed"
fi
}
src_test() {
cd "${S}"/build/lib*
for t in "${S}"/Tests/*tests.py; do
PYTHONPATH=. "${python}" ${t} || die "test $(basename ${t}) failed"
done
}
src_install() {
distutils_src_install
# do not install bsp related stuff, since we don't compile the interface
dodoc README README.MPI Doc/CHANGELOG || die "dodoc failed"
insinto /usr/share/doc/${PF}
doins Examples/{demomodule.c,netcdf_demo.py} || die "doins examples failed"
if use mpi; then
dobin Src/MPI/mpipython || die "dobin failed"
doins Examples/mpi.py || die "doins mpi example failed failed"
fi
if use doc; then
dohtml Doc/Reference/* || die "dohtml failed"
fi
}
|