summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-11-09 10:54:07 +0000
committerJustin Lecher <jlec@gentoo.org>2013-11-09 10:54:07 +0000
commita90a37f7e964158546d2fd1dfad1d85979e06ebc (patch)
tree3d471a65fbe37882870be3878b9f64dcbcaf681c /dev-python/mpi4py
parentcorrection to testtools version subsequent to testing by (helper) Chicago (diff)
downloadgentoo-2-a90a37f7e964158546d2fd1dfad1d85979e06ebc.tar.gz
gentoo-2-a90a37f7e964158546d2fd1dfad1d85979e06ebc.tar.bz2
gentoo-2-a90a37f7e964158546d2fd1dfad1d85979e06ebc.zip
dev-python/mpi4py: Version BUmp
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'dev-python/mpi4py')
-rw-r--r--dev-python/mpi4py/ChangeLog8
-rw-r--r--dev-python/mpi4py/metadata.xml10
-rw-r--r--dev-python/mpi4py/mpi4py-1.3.1.ebuild49
3 files changed, 61 insertions, 6 deletions
diff --git a/dev-python/mpi4py/ChangeLog b/dev-python/mpi4py/ChangeLog
index 73e8eb80dbb1..71639882abec 100644
--- a/dev-python/mpi4py/ChangeLog
+++ b/dev-python/mpi4py/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-python/mpi4py
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/mpi4py/ChangeLog,v 1.12 2013/09/05 18:47:18 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mpi4py/ChangeLog,v 1.13 2013/11/09 10:54:07 jlec Exp $
+
+*mpi4py-1.3.1 (09 Nov 2013)
+
+ 09 Nov 2013; Justin Lecher <jlec@gentoo.org> +mpi4py-1.3.1.ebuild,
+ metadata.xml:
+ Version BUmp
05 Sep 2013; Michał Górny <mgorny@gentoo.org> mpi4py-1.3-r1.ebuild:
Clean up PYTHON_COMPAT from old implementations.
diff --git a/dev-python/mpi4py/metadata.xml b/dev-python/mpi4py/metadata.xml
index 2709655e56c1..5bbdad7d34f1 100644
--- a/dev-python/mpi4py/metadata.xml
+++ b/dev-python/mpi4py/metadata.xml
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>python</herd>
-<longdescription lang="en">MPI for Python (mpi4py) provides bindings of the Message Passing
+ <herd>python</herd>
+ <longdescription lang="en">MPI for Python (mpi4py) provides bindings of the Message Passing
Interface (MPI) standard for the Python programming language,
allowing any Python program to exploit multiple processors.
This package is constructed on top of the MPI-1/MPI-2 specification
@@ -13,7 +13,7 @@
Python object exposing the single-segment buffer interface (NumPy
arrays, builtin bytes/string/array objects).
</longdescription>
-<upstream>
- <remote-id type="google-code">mpi4py</remote-id>
-</upstream>
+ <upstream>
+ <remote-id type="google-code">mpi4py</remote-id>
+ </upstream>
</pkgmetadata>
diff --git a/dev-python/mpi4py/mpi4py-1.3.1.ebuild b/dev-python/mpi4py/mpi4py-1.3.1.ebuild
new file mode 100644
index 000000000000..02c741d067f3
--- /dev/null
+++ b/dev-python/mpi4py/mpi4py-1.3.1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/mpi4py/mpi4py-1.3.1.ebuild,v 1.1 2013/11/09 10:54:07 jlec Exp $
+
+EAPI=5
+# Still fails test with py3.3
+# https://bitbucket.org/mpi4py/mpi4py/issue/2/fails-test-with-py33
+PYTHON_COMPAT=( python{2_6,2_7,3_2} )
+
+inherit distutils-r1
+
+DESCRIPTION="Message Passing Interface for Python"
+HOMEPAGE="http://code.google.com/p/mpi4py/ http://pypi.python.org/pypi/mpi4py"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="doc examples test"
+
+RDEPEND="virtual/mpi"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose[${PYTHON_USEDEP}]
+ virtual/mpi[romio] )"
+DISTUTILS_IN_SOURCE_BUILD=1
+
+python_prepare_all() {
+ # not needed on install
+ rm -r docs/source || die
+ distutils-r1_python_prepare_all
+}
+
+src_compile() {
+ export FAKEROOTKEY=1
+ distutils-r1_src_compile
+}
+
+python_test() {
+ echo "Beginning test phase"
+ pushd "${BUILD_DIR}"/../ &> /dev/null
+ mpiexec -n 2 "${PYTHON}" ./test/runtests.py || die "Testsuite failed under ${EPYTHON}"
+ popd &> /dev/null
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/. )
+ use examples && local EXAMPLES=( demo/. )
+ distutils-r1_python_install_all
+}