[118940] trunk/dports/science/openmpi/Portfile
sean at macports.org
sean at macports.org
Sun Apr 13 19:31:28 PDT 2014
Revision: 118940
https://trac.macports.org/changeset/118940
Author: sean at macports.org
Date: 2014-04-13 19:31:28 -0700 (Sun, 13 Apr 2014)
Log Message:
-----------
openmpi: use compiler array to generate subports
Modified Paths:
--------------
trunk/dports/science/openmpi/Portfile
Modified: trunk/dports/science/openmpi/Portfile
===================================================================
--- trunk/dports/science/openmpi/Portfile 2014-04-14 02:31:21 UTC (rev 118939)
+++ trunk/dports/science/openmpi/Portfile 2014-04-14 02:31:28 UTC (rev 118940)
@@ -51,27 +51,6 @@
# As OpenMPI creates compiler wrappers, there are lots of
# variants for what compiler the user would like to wrap.
-subport ${name}-gcc43 {}
-subport ${name}-gcc44 {}
-subport ${name}-gcc45 {}
-subport ${name}-gcc46 {}
-subport ${name}-gcc47 {}
-subport ${name}-gcc48 {}
-subport ${name}-gcc49 {}
-subport ${name}-clang {}
-subport ${name}-clang31 {}
-subport ${name}-clang32 {}
-subport ${name}-clang33 {}
-subport ${name}-clang34 {}
-subport ${name}-clang35 {}
-subport ${name}-llvm {}
-subport ${name}-default {}
-subport ${name}-dragonegg31 {}
-subport ${name}-dragonegg32 {}
-subport ${name}-dragonegg33 {}
-# subport ${name}-dragonegg34 {}
-# subport ${name}-dragonegg35 {}
-
# Compiler variant set
# name depends_lib configure.compiler Description
array set clist {
@@ -92,10 +71,13 @@
dragonegg31 {macports-dragonegg-3.1}
dragonegg32 {macports-dragonegg-3.2}
dragonegg33 {macports-dragonegg-3.3}
- dragonegg34 {macports-dragonegg-3.4}
- dragonegg35 {macports-dragonegg-3.5}
}
+foreach key [array name clist] {
+ subport ${name}-${key} {}
+}
+subport ${name}-default {}
+
configure.dir ${workpath}/build
configure.cmd ${worksrcpath}/configure
configure.args --enable-mpi-fortran \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140413/ea500fec/attachment.html>
More information about the macports-changes
mailing list