Revision
149576
Author
jmr@macports.org
Date
2016-06-27 05:29:04 -0700 (Mon, 27 Jun 2016)

Log Message

pypy: fix parsing of Portfile on platforms that are not darwin but pretend to be, like our server that generates the PortIndex (#51597)

Modified Paths

Diff

Modified: trunk/dports/lang/pypy/Portfile (149575 => 149576)


--- trunk/dports/lang/pypy/Portfile	2016-06-27 12:00:46 UTC (rev 149575)
+++ trunk/dports/lang/pypy/Portfile	2016-06-27 12:29:04 UTC (rev 149576)
@@ -49,7 +49,7 @@
 #if {[file executable ${prefix}/lib/pypy/pypy]} {
 #    build.cmd       ${prefix}/lib/pypy/pypy
 #} else {
-    if {${os.platform} eq "darwin" && ${os.arch} eq "i386" && [sysctl hw.cpu64bit_capable] == 1} {
+    if {${os.platform} eq "darwin" && ${os.arch} eq "i386" && ![catch {sysctl hw.cpu64bit_capable} is64bit] && $is64bit == 1} {
         depends_build-append port:pypy-bootstrap
         build.cmd       ${prefix}/lib/pypy-bootstrap/bin/pypy
     } else {