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

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


Revision: 116347
          https://trac.macports.org/changeset/116347
Author:   sean at macports.org
Date:     2014-01-23 12:12:48 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
mpi-1.0: also check default_variants in mpi_variant_isset

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:43 UTC (rev 116346)
+++ trunk/dports/_resources/port1.0/group/mpi-1.0.tcl	2014-01-23 20:12:48 UTC (rev 116347)
@@ -139,10 +139,11 @@
 }
 
 proc mpi_variant_name {} {
-    global mpi.variants
+    global mpi.variants variations
 
     foreach mpiv ${mpi.variants} {
-        if {[variant_isset $mpiv]} {
+        # we need to check the default_variants so we can't use variant_isset
+        if {[info exists variations($mpiv)] && $variations($mpiv) eq "+"} {
             return $mpiv
         }
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/49f237bb/attachment-0001.html>


More information about the macports-changes mailing list