[106260] trunk/dports/lang/pypy

sean at macports.org sean at macports.org
Mon May 20 13:54:51 PDT 2013


Revision: 106260
          https://trac.macports.org/changeset/106260
Author:   sean at macports.org
Date:     2013-05-20 13:54:51 -0700 (Mon, 20 May 2013)
Log Message:
-----------
pypy: fix configure.py to Using The Right Compiler

Modified Paths:
--------------
    trunk/dports/lang/pypy/Portfile

Added Paths:
-----------
    trunk/dports/lang/pypy/files/configure.py.diff

Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- trunk/dports/lang/pypy/Portfile	2013-05-20 19:48:20 UTC (rev 106259)
+++ trunk/dports/lang/pypy/Portfile	2013-05-20 20:54:51 UTC (rev 106260)
@@ -33,7 +33,8 @@
                     port:gettext
 
 patchfiles          darwin.py.diff \
-                    make_output.diff
+                    make_output.diff \
+                    configure.py.diff
 
 use_configure       no
 
@@ -72,7 +73,9 @@
 }
 build.env           PYPY_USESSION_DIR=${workpath} PYPY_LOCALBASE=${prefix} \
                     CFLAGS="${configure.cc_archflags} ${configure.cppflags}" \
-                    LDFLAGS="${configure.ld_archflags} ${configure.ldflags}"
+                    LDFLAGS="${configure.ld_archflags} ${configure.ldflags}" \
+                    PYPY_CC="${configure.cc}"
+
 build.dir           ${worksrcpath}/pypy/goal
 build.args          --batch --translation-verbose \
                     --cc=${configure.cc} --opt=jit \

Added: trunk/dports/lang/pypy/files/configure.py.diff
===================================================================
--- trunk/dports/lang/pypy/files/configure.py.diff	                        (rev 0)
+++ trunk/dports/lang/pypy/files/configure.py.diff	2013-05-20 20:54:51 UTC (rev 106260)
@@ -0,0 +1,15 @@
+--- ctypes_configure/configure.py
++++ ctypes_configure/configure.py
+@@ -567,11 +567,11 @@
+     printf("%s: %d\\n", key, value);
+ }
+ """
+ 
+ def run_example_code(filepath, eci, noerr=False):
+-    executable = build_executable([filepath], eci, noerr=noerr)
++    executable = build_executable([filepath], eci, compiler_exe=os.getenv('PYPY_CC'), noerr=noerr)
+     output = py.process.cmdexec(executable)
+     section = None
+     for line in output.splitlines():
+         line = line.strip()
+         if line.startswith('-+- '):      # start of a new section
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130520/9a241f10/attachment.html>


More information about the macports-changes mailing list