[88198] trunk/dports/python/py-scientific/Portfile
adfernandes at macports.org
adfernandes at macports.org
Wed Dec 21 12:54:13 PST 2011
Revision: 88198
http://trac.macports.org/changeset/88198
Author: adfernandes at macports.org
Date: 2011-12-21 12:54:12 -0800 (Wed, 21 Dec 2011)
Log Message:
-----------
py-scientific : added openmpi variant as per #14651
Modified Paths:
--------------
trunk/dports/python/py-scientific/Portfile
Modified: trunk/dports/python/py-scientific/Portfile
===================================================================
--- trunk/dports/python/py-scientific/Portfile 2011-12-21 20:47:57 UTC (rev 88197)
+++ trunk/dports/python/py-scientific/Portfile 2011-12-21 20:54:12 UTC (rev 88198)
@@ -46,7 +46,24 @@
}
}
-variant mpi description {Enable lammpi support} {
+variant openmpi description {Enable openmpi support} conflicts mpi {
+ depends_lib-append port:openmpi
+
+ post-patch {
+ reinplace "s|mpicompiler = 'mpicc'|mpicompiler = 'openmpicc'|g" \
+ ${worksrcpath}/Src/MPI/compile.py
+ reinplace "s|\\(-I%s\\)|\\1 -I${worksrcpath}/Include|g" \
+ ${worksrcpath}/Src/MPI/compile.py
+
+ system "cd ${worksrcpath}/Src/MPI && ${python.bin} compile.py"
+ }
+
+ post-destroot {
+ xinstall ${worksrcpath}/Src/MPI/mpipython ${destroot}${prefix}/bin
+ }
+}
+
+variant mpi description conflicts openmpi {Enable lammpi support} {
depends_lib-append port:lammpi
patchfiles-append patch-Src-MPI-compile.py.diff
post-build {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111221/868c9dd3/attachment.html>
More information about the macports-changes
mailing list