[116344] trunk/dports/_resources/port1.0/group/mpi-1.0.tcl

sean at macports.org sean at macports.org
Thu Jan 23 12:12:34 PST 2014


Revision: 116344
          https://trac.macports.org/changeset/116344
Author:   sean at macports.org
Date:     2014-01-23 12:12:34 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
mpi-1.0: add mpi_active_variant_name proc

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-01-23 20:12:27 UTC (rev 116343)
+++ trunk/dports/_resources/port1.0/group/mpi-1.0.tcl	2014-01-23 20:12:34 UTC (rev 116344)
@@ -122,6 +122,20 @@
     }
 }
 
+proc mpi_active_variant_name {depspec} {
+    global mpi.variants
+
+    foreach m ${mpi.variants} {
+        if {![catch {set result [active_variants $depspec $m ""]}]} {
+            if {$result} {
+                return $m
+            }
+        }
+    }
+
+    return ""
+}
+
 proc mpi_variant_name {} {
     global mpi.variants
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/d967f90d/attachment.html>


More information about the macports-changes mailing list