summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-17 21:43:59 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-17 21:43:59 +0000
commit854b7158dbc4a4fd3547c93c1e2ada2b9aea80ca (patch)
tree3d2864dccd75408be6cb22ab4bc6b740aef54733
parentadd kernel version check, bug #305595 (diff)
downloadhistorical-854b7158dbc4a4fd3547c93c1e2ada2b9aea80ca.tar.gz
historical-854b7158dbc4a4fd3547c93c1e2ada2b9aea80ca.tar.bz2
historical-854b7158dbc4a4fd3547c93c1e2ada2b9aea80ca.zip
PREFIX ready, and keyworded for ~amd64-linux ~x86-linux
Package-Manager: portage-2.2_rc62/cvs/Linux x86_64
-rw-r--r--dev-python/scientificpython/ChangeLog8
-rw-r--r--dev-python/scientificpython/Manifest9
-rw-r--r--dev-python/scientificpython/scientificpython-2.9-r1.ebuild78
3 files changed, 90 insertions, 5 deletions
diff --git a/dev-python/scientificpython/ChangeLog b/dev-python/scientificpython/ChangeLog
index 9207ffbf44d0..b1507f9efda0 100644
--- a/dev-python/scientificpython/ChangeLog
+++ b/dev-python/scientificpython/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/scientificpython
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.29 2010/02/02 17:02:19 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/ChangeLog,v 1.30 2010/02/17 21:43:59 jlec Exp $
+
+*scientificpython-2.9-r1 (17 Feb 2010)
+
+ 17 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ +scientificpython-2.9-r1.ebuild:
+ PREFIX ready, and keyworded for ~amd64-linux ~x86-linux
02 Feb 2010; SĂ©bastien Fabbro <bicatali@gentoo.org>
scientificpython-2.9.ebuild, +files/scientificpython-2.9-mpi-netcdf.patch:
diff --git a/dev-python/scientificpython/Manifest b/dev-python/scientificpython/Manifest
index 912f8aa31084..5686e380db2c 100644
--- a/dev-python/scientificpython/Manifest
+++ b/dev-python/scientificpython/Manifest
@@ -4,13 +4,14 @@ Hash: SHA1
AUX scientificpython-2.9-mpi-netcdf.patch 1350 RMD160 c7b7b91806567b1f2c315d5b98512482a1f2a6d5 SHA1 666a6ecaa0de00ab890744d340f1fe372707117b SHA256 923952fac690c8adfca49d17bccb9d6d0a77810fc7adbafccb9af85251b1c2fd
AUX scientificpython-2.9-mpi.patch 1176 RMD160 cad462654d528591ce8dbf185cf21c14a58c31e0 SHA1 1f327805854e76ac8123f2b4f9ac0ce4cf05375b SHA256 de665a5fbf474253a1fff8b5a929cd68165e5d6dd0d9e0fe52b4ecd39bedc43f
DIST ScientificPython-2.9.tar.gz 593720 RMD160 2533879b64fcb17027b11784fc0cff4351284c98 SHA1 60fb1ec7c31c86b7e7a068ccda780197e1e95ad8 SHA256 4ffc33f211b9dc811af0aa82b74453f73c7f415c04352ac1cef92b95b12b74be
+EBUILD scientificpython-2.9-r1.ebuild 2252 RMD160 f5a7ccf170de29252e0c3e048b871ba43324ee87 SHA1 9c7ae63b2c0e2cb34f52938906b25518383ca909 SHA256 e8212d5ea37f12afb778deb9971051d25c9dd42a8c632530a0734e1510575986
EBUILD scientificpython-2.9.ebuild 2222 RMD160 a7b15df6c53ace0d4197565aacc61f4fce4e558a SHA1 7dab95eb369586fc4205655770ef09f525602e73 SHA256 48d2c2423c5e5558bf0f0b635f8cca5a20d39365d2b9751bca838f6c642dd803
-MISC ChangeLog 6601 RMD160 d6f0c25358a5541ccf76df37891c60d41d14f41c SHA1 11797d2d54b62916492f49b8fbb0bcc0d22a810a SHA256 5f1914c95fbd02a44bba58fb44588dfd0275a70a87a26a325d84d1f410c3de2b
+MISC ChangeLog 6785 RMD160 661a3d49be48d7abb6e3ce05b4c432f3b017977d SHA1 327fe44967755b2a541231a35e954d9221aa7e07 SHA256 13b468c294f19e2c0d8a64207041025f643883d276139db7e2972a3349d817a1
MISC metadata.xml 734 RMD160 47baa4ca9756eff5e19c8f7b18f18054d5c3e1aa SHA1 aa3adb4221bc8997d68d01afa2ca8528ab579baf SHA256 6749ecfd7ae3f2ed8e9da27ad372d9f35023cdf3ea7ab0976b829460b1d03b2f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAktonQIACgkQ1ycZbhPLE2CxSACghC8M1aweCmU+qewKjhCEmkMm
-OQoAnAw47pA0YcQ9WRGXmtZrWF5rV2Zq
-=UTBH
+iEYEARECAAYFAkt8YyUACgkQgAnW8HDreRZMcgCgiT7+y7m5pIIB5CT4iGeiTEeP
+47YAoKnQbRARYgzSPi0VQJzyaSXFWa/M
+=PM+B
-----END PGP SIGNATURE-----
diff --git a/dev-python/scientificpython/scientificpython-2.9-r1.ebuild b/dev-python/scientificpython/scientificpython-2.9-r1.ebuild
new file mode 100644
index 000000000000..8b525c74d8e1
--- /dev/null
+++ b/dev-python/scientificpython/scientificpython-2.9-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/scientificpython/scientificpython-2.9-r1.ebuild,v 1.1 2010/02/17 21:43:59 jlec Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit distutils eutils
+
+MY_PN="ScientificPython"
+DV="2372" # hardcoded download version
+
+DESCRIPTION="Scientific Module for Python"
+SRC_URI="http://sourcesup.cru.fr/frs/download.php/${DV}/${MY_PN}-${PV}.tar.gz"
+HOMEPAGE="http://sourcesup.cru.fr/projects/scientific-py/"
+
+LICENSE="CeCILL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc mpi test"
+
+RDEPEND="dev-python/numpy
+ || ( =sci-libs/netcdf-3.6* >=sci-libs/netcdf-4[mpi=] )
+ mpi? ( virtual/mpi )"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose )"
+RESTRICT_PYTHON_ABIS="3.*"
+
+S="${WORKDIR}/${MY_PN}-${PV}.0"
+
+PYTHON_MODNAME="Scientific"
+
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}/${P}-mpi.patch"
+ use mpi && epatch "${FILESDIR}/${P}-mpi-netcdf.patch"
+}
+
+src_compile() {
+ distutils_src_compile
+ if use mpi; then
+ cd Src/MPI
+ building_of_mpipython() {
+ PYTHONPATH="$(ls -d ../../build-${PYTHON_ABI}/lib*)" "$(PYTHON)" compile.py
+ mv -f mpipython mpipython-${PYTHON_ABI}
+ }
+ python_execute_function --action-message 'Building of mpipython with Python ${PYTHON_ABI}...' --failure-message 'Building of mpipython failed with Python ${PYTHON_ABI}' building_of_mpipython
+ fi
+}
+
+src_test() {
+ cd Tests
+ testing() {
+ PYTHONPATH="$(ls -d ../build-${PYTHON_ABI}/lib.*)" nosetests-${PYTHON_ABI}
+ }
+ python_execute_function testing
+}
+
+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
+ installation_of_mpipython() {
+ dobin Src/MPI/mpipython-${PYTHON_ABI}
+ }
+ python_execute_function -q installation_of_mpipython
+ python_generate_wrapper_scripts "${ED}usr/bin/mpipython"
+ doins Examples/mpi.py || die "doins mpi example failed failed"
+ fi
+
+ if use doc; then
+ dohtml Doc/Reference/* || die "dohtml failed"
+ fi
+}