[149576] trunk/dports/lang/pypy/Portfile

jmr at macports.org jmr at macports.org
Mon Jun 27 05:29:05 PDT 2016


Revision: 149576
          https://trac.macports.org/changeset/149576
Author:   jmr at 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:
--------------
    trunk/dports/lang/pypy/Portfile

Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- 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 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160627/7dc3797f/attachment.html>


More information about the macports-changes mailing list