[141899] trunk/dports/math/atlas/Portfile
sean at macports.org
sean at macports.org
Sat Dec 12 03:28:50 PST 2015
Revision: 141899
https://trac.macports.org/changeset/141899
Author: sean at macports.org
Date: 2015-10-30 16:38:16 -0700 (Fri, 30 Oct 2015)
Log Message:
-----------
atlas: add support for finding gfortran 5
Modified Paths:
--------------
trunk/dports/math/atlas/Portfile
Modified: trunk/dports/math/atlas/Portfile
===================================================================
--- trunk/dports/math/atlas/Portfile 2015-10-30 23:38:11 UTC (rev 141898)
+++ trunk/dports/math/atlas/Portfile 2015-10-30 23:38:16 UTC (rev 141899)
@@ -419,7 +419,7 @@
if {${use_clang} != "" && ${fortran} == 1} {
if {![variant_isset perf]} {
- set gflist [glob -noc ${prefix}/bin/gfortran-mp-4.*]
+ set gflist [glob -noc ${prefix}/bin/gfortran-mp-*]
if {[llength ${gflist}] == 0} {
# No fortran compiler found, bail out
@@ -435,7 +435,7 @@
configure.f77 [lindex [lsort -dec ${gflist}] 0]
set gcc_version \
- [join [split [string range ${configure.f77} end-2 end] "."] ""]
+ [string replace ${configure.f77} 0 [string length ${prefix}]+[string length bin/gfortran-mp-]]
}
} else {
set libgccpath ${prefix}/lib/gcc48
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/1cc281b7/attachment.html>
More information about the macports-changes
mailing list