Revision: 100380 https://trac.macports.org/changeset/100380 Author: jmr@macports.org Date: 2012-12-10 01:32:46 -0800 (Mon, 10 Dec 2012) Log Message: ----------- py-mpi4py: fix stub, set license Modified Paths: -------------- trunk/dports/python/py-mpi4py/Portfile Modified: trunk/dports/python/py-mpi4py/Portfile =================================================================== --- trunk/dports/python/py-mpi4py/Portfile 2012-12-10 09:29:24 UTC (rev 100379) +++ trunk/dports/python/py-mpi4py/Portfile 2012-12-10 09:32:46 UTC (rev 100380) @@ -7,7 +7,7 @@ name py-mpi4py version 1.2.2 revision 2 -categories python +license BSD description MPI for Python - Python bindings for MPI long_description \ MPI for Python (mpi4py) provides bindings of the Message Passing Interface \ @@ -32,24 +32,25 @@ 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.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 +if {$subport != $name} { + depends_lib-append port:openmpi + build.args-append "--mpicc=${prefix}/bin/openmpicc" + + # openmpi and mpich2 are not universal + universal_variant no + + 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 interpreter description {builds an mpi enabled python interpreter} { + patchfiles-append patch-conf-mpidistutils.py.diff + } } - -variant interpreter description {builds an mpi enabled python interpreter} { - patchfiles-append patch-conf-mpidistutils.py.diff -}
participants (1)
-
jmr@macports.org