[96267] trunk/dports/lang/g95/Portfile
jmr at macports.org
jmr at macports.org
Mon Aug 6 13:02:13 PDT 2012
Revision: 96267
https://trac.macports.org/changeset/96267
Author: jmr at macports.org
Date: 2012-08-06 13:02:12 -0700 (Mon, 06 Aug 2012)
Log Message:
-----------
g95: avoid parse error when build_arch is not in the array of recognised values (#35432)
Modified Paths:
--------------
trunk/dports/lang/g95/Portfile
Modified: trunk/dports/lang/g95/Portfile
===================================================================
--- trunk/dports/lang/g95/Portfile 2012-08-06 19:52:55 UTC (rev 96266)
+++ trunk/dports/lang/g95/Portfile 2012-08-06 20:02:12 UTC (rev 96267)
@@ -29,11 +29,14 @@
}
}
+set triple ""
if {[variant_isset gcc42]} {
set version_gcc 4.2.4
dist_subdir gcc42
array set barch {ppc powerpc ppc64 powerpc64 i386 i386 x86_64 x86_64}
- set triple $barch(${build_arch})-apple-darwin${os.major}
+ if {[info exists barch(${build_arch})]} {
+ set triple $barch(${build_arch})-apple-darwin${os.major}
+ }
} else {
set version_gcc 4.0.4
dist_subdir gcc40
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120806/cf59987e/attachment.html>
More information about the macports-changes
mailing list