[125590] trunk/dports/lang/pypy

jmr at macports.org jmr at macports.org
Mon Sep 22 01:39:10 PDT 2014


Revision: 125590
          https://trac.macports.org/changeset/125590
Author:   jmr at macports.org
Date:     2014-09-22 01:39:10 -0700 (Mon, 22 Sep 2014)
Log Message:
-----------
pypy: patch in our include and lib paths so the right ncurses will always be used when compiling the _curses module (#45119)

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

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

Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- trunk/dports/lang/pypy/Portfile	2014-09-22 08:36:53 UTC (rev 125589)
+++ trunk/dports/lang/pypy/Portfile	2014-09-22 08:39:10 UTC (rev 125590)
@@ -34,8 +34,13 @@
 
 patchfiles          darwin.py.diff \
                     make_output.diff \
-                    configure.py.diff
+                    configure.py.diff \
+                    ffiplatform.py.diff
 
+post-patch {
+    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/lib_pypy/cffi/ffiplatform.py
+}
+
 use_configure       no
 
 # use pypy to build if it's already installed

Added: trunk/dports/lang/pypy/files/ffiplatform.py.diff
===================================================================
--- trunk/dports/lang/pypy/files/ffiplatform.py.diff	                        (rev 0)
+++ trunk/dports/lang/pypy/files/ffiplatform.py.diff	2014-09-22 08:39:10 UTC (rev 125590)
@@ -0,0 +1,11 @@
+--- lib_pypy/cffi/ffiplatform.py.orig	2014-09-18 21:28:22.000000000 +1000
++++ lib_pypy/cffi/ffiplatform.py	2014-09-22 17:06:20.000000000 +1000
+@@ -43,6 +43,8 @@
+     options['force'] = ('ffiplatform', True)
+     options['build_lib'] = ('ffiplatform', tmpdir)
+     options['build_temp'] = ('ffiplatform', tmpdir)
++    options['include_dirs'] = ('ffiplatform', '__PREFIX__/include')
++    options['library_dirs'] = ('ffiplatform', '__PREFIX__/lib')
+     #
+     try:
+         dist.run_command('build_ext')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140922/ff684639/attachment.html>


More information about the macports-changes mailing list