diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-12-08 23:01:45 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-12-08 23:01:45 +0000 |
commit | b7238f0352a9cbf106814d9725c0bf9f6c9d3c1d (patch) | |
tree | c0f376be71b2a3f0d9b72588a16051a66da4f3ca /dev-python/scientificpython | |
parent | Version bump + a few hacks to get the paths the way we want them and to elimi... (diff) | |
download | gentoo-2-b7238f0352a9cbf106814d9725c0bf9f6c9d3c1d.tar.gz gentoo-2-b7238f0352a9cbf106814d9725c0bf9f6c9d3c1d.tar.bz2 gentoo-2-b7238f0352a9cbf106814d9725c0bf9f6c9d3c1d.zip |
Version bump
(Portage version: 2.2_rc17/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'dev-python/scientificpython')
-rw-r--r-- | dev-python/scientificpython/ChangeLog | 9 | ||||
-rw-r--r-- | dev-python/scientificpython/files/scientificpython-2.8-mpi.patch | 14 | ||||
-rw-r--r-- | dev-python/scientificpython/metadata.xml | 18 | ||||
-rw-r--r-- | dev-python/scientificpython/scientificpython-2.8.ebuild | 60 |
4 files changed, 91 insertions, 10 deletions
diff --git a/dev-python/scientificpython/ChangeLog b/dev-python/scientificpython/ChangeLog index e1ce6a0e430a..af24a230dbc8 100644 --- a/dev-python/scientificpython/ChangeLog +++ b/dev-python/scientificpython/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/scientificpython # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.16 2008/01/04 14:36:29 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.17 2008/12/08 23:01:45 bicatali Exp $ + +*scientificpython-2.8 (08 Dec 2008) + + 08 Dec 2008; Sébastien Fabbro <bicatali@gentoo.org> + +files/scientificpython-2.8-mpi.patch, metadata.xml, + +scientificpython-2.8.ebuild: + Version bump 04 Jan 2008; Sébastien Fabbro <bicatali@gentoo.org> -scientificpython-2.6.ebuild: diff --git a/dev-python/scientificpython/files/scientificpython-2.8-mpi.patch b/dev-python/scientificpython/files/scientificpython-2.8-mpi.patch new file mode 100644 index 000000000000..38e050dcc720 --- /dev/null +++ b/dev-python/scientificpython/files/scientificpython-2.8-mpi.patch @@ -0,0 +1,14 @@ +--- Src/MPI/compile.py.orig 2008-12-08 22:20:48.087256819 +0000 ++++ Src/MPI/compile.py 2008-12-08 22:52:29.115141699 +0000 +@@ -32,9 +32,10 @@ + items[i] = os.path.join(frameworkdir[0], items[i]) + linkforshared = ' '.join(items) + +-cmd = '%s %s -o mpipython -I%s %s %s -L%s -lpython%s %s %s' % \ ++cmd = '%s %s %s -o mpipython -I%s -I../../Include %s %s -L%s -lpython%s %s %s' % \ + (mpicompiler, + linkforshared, ++ cfgDict['LDFLAGS'], + cfgDict['INCLUDEPY'], + extra_compile_args, + sources, diff --git a/dev-python/scientificpython/metadata.xml b/dev-python/scientificpython/metadata.xml index a531d91d7247..3c7c86b766c4 100644 --- a/dev-python/scientificpython/metadata.xml +++ b/dev-python/scientificpython/metadata.xml @@ -1,16 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>python</herd> <herd>sci</herd> +<herd>python</herd> <longdescription lang="en"> -ScientificPython is a collection of Python modules that are useful for -scientific computing. In this collection you will find modules that -cover basic geometry (vectors, tensors, transformations, vector and -tensor fields), quaternions, automatic derivatives, linear -interpolation, polynomials, elementary statistics, nonlinear -least-squares fits, unit calculations, Fortran-compatible text -formatting, 3D visualization via VRML, and two Tk widgets for simple -line plots and 3D wireframe models. + ScientificPython is a collection of Python modules that are useful for + scientific computing. In this collection you will find modules that + cover basic geometry (vectors, tensors, transformations, vector and + tensor fields), quaternions, automatic derivatives, linear + interpolation, polynomials, elementary statistics, nonlinear + least-squares fits, unit calculations, Fortran-compatible text + formatting, 3D visualization via VRML, and two Tk widgets for simple + line plots and 3D wireframe models. </longdescription> </pkgmetadata> diff --git a/dev-python/scientificpython/scientificpython-2.8.ebuild b/dev-python/scientificpython/scientificpython-2.8.ebuild new file mode 100644 index 000000000000..df58afad214d --- /dev/null +++ b/dev-python/scientificpython/scientificpython-2.8.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.8.ebuild,v 1.1 2008/12/08 23:01:45 bicatali Exp $ + +MY_PN=ScientificPython +DV=2309 # 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/numpy + sci-libs/netcdf + mpi? ( virtual/mpi )" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-mpi.patch +} + +src_compile() { + distutils_src_compile + if use mpi; then + cd Src/MPI + PYTHONPATH=$(ls -d "${S}"/build/lib*) \ + "${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 +} |