[118683] trunk/dports/python/py-SDL2

jmr at macports.org jmr at macports.org
Mon Apr 7 20:03:08 PDT 2014


Revision: 118683
          https://trac.macports.org/changeset/118683
Author:   jmr at macports.org
Date:     2014-04-07 20:03:08 -0700 (Mon, 07 Apr 2014)
Log Message:
-----------
py-SDL2: update to 0.9.1, and explicitly add ${prefix}/lib to the library search path (#42406)

Modified Paths:
--------------
    trunk/dports/python/py-SDL2/Portfile

Added Paths:
-----------
    trunk/dports/python/py-SDL2/files/
    trunk/dports/python/py-SDL2/files/dll.py.patch

Modified: trunk/dports/python/py-SDL2/Portfile
===================================================================
--- trunk/dports/python/py-SDL2/Portfile	2014-04-08 02:56:30 UTC (rev 118682)
+++ trunk/dports/python/py-SDL2/Portfile	2014-04-08 03:03:08 UTC (rev 118683)
@@ -4,7 +4,7 @@
 PortGroup           python 1.0
 
 name                py-SDL2
-version             0.9.0
+version             0.9.1
 categories-append   devel multimedia
 license             public-domain
 platforms           darwin
@@ -20,8 +20,8 @@
 master_sites        ${homepage}/downloads/
 distname            PySDL2-${version}
 
-checksums           rmd160 e3e1b07c4cd3c933c1017e4e07ad05cb82638a6d \
-                    sha256 9d892cb4d493f355fbf81c874ea5867aec4e447ee678aefff21e19a94cd1338d
+checksums           rmd160 dc65a9e0ea72f653775d6091311c67451b54e837 \
+                    sha256 1a0c0e6082af00f38d9e0930ac098a5a958ece2c7e3f7c7c6dcd864010492f82
 
 python.versions     27 32 33 34
 
@@ -31,6 +31,11 @@
                         port:libsdl2_mixer \
                         port:libsdl2_ttf
 
+    patchfiles          dll.py.patch
+    post-patch {
+        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/sdl2/dll.py
+    }
+
     livecheck.type      none
 } else {
     livecheck.type      regex

Added: trunk/dports/python/py-SDL2/files/dll.py.patch
===================================================================
--- trunk/dports/python/py-SDL2/files/dll.py.patch	                        (rev 0)
+++ trunk/dports/python/py-SDL2/files/dll.py.patch	2014-04-08 03:03:08 UTC (rev 118683)
@@ -0,0 +1,14 @@
+--- sdl2/dll.py.orig	2014-01-25 04:14:32.000000000 +1100
++++ sdl2/dll.py	2014-04-08 12:37:01.000000000 +1000
+@@ -32,6 +32,11 @@
+             dllfile = os.path.join(path, pattern % libname)
+             if os.path.exists(dllfile):
+                 results.append(dllfile)
++    # MacPorts addition: search in our prefix first
++    for libname in searchfor:
++        dllfile = os.path.join('__PREFIX__', 'lib', pattern % libname)
++        if os.path.exists(dllfile):
++            results.append(dllfile)
+     for libname in searchfor:
+         dllfile = find_library(libname)
+         if dllfile:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140407/938f7b0b/attachment-0001.html>


More information about the macports-changes mailing list