[116304] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
sean at macports.org
sean at macports.org
Thu Jan 23 12:08:50 PST 2014
Revision: 116304
https://trac.macports.org/changeset/116304
Author: sean at macports.org
Date: 2014-01-23 12:08:50 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
compilers-1.0: add fortran_active_variant_name proc
Modified Paths:
--------------
trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
Modified: trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2014-01-23 20:08:44 UTC (rev 116303)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2014-01-23 20:08:50 UTC (rev 116304)
@@ -311,6 +311,20 @@
return ""
}
+proc fortran_active_variant_name {depspec} {
+ global compilers.fortran_variants
+
+ foreach fc ${compilers.fortran_variants} {
+ if {![catch {set result [active_variants $depspec $fc ""]}]} {
+ if {$result} {
+ return $fc
+ }
+ }
+ }
+
+ return ""
+}
+
proc fortran_variant_name {} {
global compilers.fortran_variants
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/6e1be474/attachment-0001.html>
More information about the macports-changes
mailing list