[118764] trunk/dports/_resources/port1.0/group/mpi-1.0.tcl
sean at macports.org
sean at macports.org
Thu Apr 10 17:12:40 PDT 2014
Revision: 118764
https://trac.macports.org/changeset/118764
Author: sean at macports.org
Date: 2014-04-10 17:12:40 -0700 (Thu, 10 Apr 2014)
Log Message:
-----------
mpi-1.0: move enforce proc into pre-fetch to avoid parse errors
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/mpi-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/mpi-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/mpi-1.0.tcl 2014-04-11 00:12:36 UTC (rev 118763)
+++ trunk/dports/_resources/port1.0/group/mpi-1.0.tcl 2014-04-11 00:12:40 UTC (rev 118764)
@@ -40,6 +40,7 @@
default mpi.variants {}
default mpi.require 0
+default mpi.required_variants {}
set mpi.list {cc cxx f77 f90 fc}
set mpi.cc mpicc
@@ -153,6 +154,11 @@
}
proc mpi.enforce_variant {args} {
+ global mpi.required_variants
+ set mpi.required_variants $args
+}
+
+proc mpi.action_enforce_variants {args} {
foreach portname $args {
if {![catch {set result [active_variants $portname "" ""]}]} {
set otmpi [mpi_active_variant_name $portname]
@@ -165,7 +171,7 @@
return -code error "$portname +$mympi not installed"
}
- compilers.enforce_c $portname
+ eval compilers.action_enforce_c $portname
}
}
}
@@ -274,4 +280,5 @@
if {${mpi.require} && [mpi_variant_name] eq ""} {
return -code error "must set at least one mpi variant"
}
+ eval mpi.action_enforce_variants ${mpi.required_variants}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140410/9321a985/attachment.html>
More information about the macports-changes
mailing list