[131490] trunk/dports/_resources/port1.0/group/compilers-1.0.tcl
sean at macports.org
sean at macports.org
Mon Jan 12 16:59:05 PST 2015
Revision: 131490
https://trac.macports.org/changeset/131490
Author: sean at macports.org
Date: 2015-01-12 16:59:05 -0800 (Mon, 12 Jan 2015)
Log Message:
-----------
compilers-1.0: check fortran variants before setting default_variants
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 2015-01-13 00:59:03 UTC (rev 131489)
+++ trunk/dports/_resources/port1.0/group/compilers-1.0.tcl 2015-01-13 00:59:05 UTC (rev 131490)
@@ -558,8 +558,20 @@
if {${compilers.require_fortran} && ![fortran_variant_isset]} {
if {[lsearch -exact ${compilers.variants} gfortran] > -1} {
default_variants-append +gfortran
- } else {
+ } elseif {[lsearch -exact ${compilers.variants} gcc49] > -1} {
default_variants-append +gcc49
+ } elseif {[lsearch -exact ${compilers.variants} gcc48] > -1} {
+ default_variants-append +gcc48
+ } elseif {[lsearch -exact ${compilers.variants} gcc47] > -1} {
+ default_variants-append +gcc47
+ } elseif {[lsearch -exact ${compilers.variants} gcc46] > -1} {
+ default_variants-append +gcc46
+ } elseif {[lsearch -exact ${compilers.variants} gcc45] > -1} {
+ default_variants-append +gcc45
+ } elseif {[lsearch -exact ${compilers.variants} gcc44] > -1} {
+ default_variants-append +gcc44
+ } elseif {[lsearch -exact ${compilers.variants} g95] > -1} {
+ default_variants-append +g95
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150112/46baa72e/attachment-0001.html>
More information about the macports-changes
mailing list