py-mpi4py : better error checking (no errors thrown in body of port)

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@86256 d073be05-634f-4543-b044-5fe20cf6d1d6
This commit is contained in:
Andrew Fernandes
2011-10-24 01:18:00 +00:00
parent 14afe8c5c4
commit 8ca9fdea67
+10 -9
View File
@@ -8,8 +8,6 @@ name py-mpi4py
version 1.2.2
revision 2
categories python
python.versions 25 26 27
python.default_version 27
description MPI for Python - Python bindings for MPI
long_description \
MPI for Python (mpi4py) provides bindings of the Message Passing Interface \
@@ -33,20 +31,23 @@ checksums md5 91c1b962529adfd90b9f9f98db5624b7 \
rmd160 434d411aa4e954706f2ca8bdde115dc654b58f21
platforms darwin
python.versions 25 26 27
python.default_version 27
depends_lib-append port:openmpi
build.args-append "--mpicc=${prefix}/bin/openmpicc"
# openmpi and mpich2 are not universal
universal_variant no
if { ${os.major} < 9 && [variant_isset mpich2] } {
error "Mac OS 10.4 and earlier require openmpi"
}
if { ${os.platform} != "darwin" || ${os.major} > 8 } {
variant mpich2 description {builds with the mpich2 port} {
build.args-delete "--mpicc=${prefix}/bin/openmpicc"
depends_lib-delete port:openmpi
depends_lib-append port:mpich2
}
variant mpich2 description {builds with the mpich2 port} {
depends_lib-append port:mpich2
depends_lib-delete port:openmpi
build.args-delete "--mpicc=${prefix}/bin/openmpicc"
}
variant interpreter description {builds an mpi enabled python interpreter} {