[38804] trunk/dports/python/py25-shapely

landonf at macports.org landonf at macports.org
Thu Jul 31 15:04:24 PDT 2008


Revision: 38804
          http://trac.macosforge.org/projects/macports/changeset/38804
Author:   landonf at macports.org
Date:     2008-07-31 15:04:23 -0700 (Thu, 31 Jul 2008)
Log Message:
-----------
Fix discovery of MacPort's libgeos_c

Modified Paths:
--------------
    trunk/dports/python/py25-shapely/Portfile

Added Paths:
-----------
    trunk/dports/python/py25-shapely/files/
    trunk/dports/python/py25-shapely/files/patch-shapely_geos.py

Modified: trunk/dports/python/py25-shapely/Portfile
===================================================================
--- trunk/dports/python/py25-shapely/Portfile	2008-07-31 21:56:21 UTC (rev 38803)
+++ trunk/dports/python/py25-shapely/Portfile	2008-07-31 22:04:23 UTC (rev 38804)
@@ -5,6 +5,7 @@
 
 name            py25-shapely
 version         1.0.6
+revision	1
 categories      python devel
 platforms       darwin
 maintainers     landonf openmaintainer
@@ -26,3 +27,9 @@
 		port:geos
 
 checksums	md5 f34034848949d2ba2bca8f6c5b67b89f
+
+patchfiles	patch-shapely_geos.py
+
+post-patch {
+	reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/shapely/geos.py
+}

Added: trunk/dports/python/py25-shapely/files/patch-shapely_geos.py
===================================================================
--- trunk/dports/python/py25-shapely/files/patch-shapely_geos.py	                        (rev 0)
+++ trunk/dports/python/py25-shapely/files/patch-shapely_geos.py	2008-07-31 22:04:23 UTC (rev 38804)
@@ -0,0 +1,12 @@
+--- shapely/geos.py.orig	2008-07-31 15:01:11.000000000 -0700
++++ shapely/geos.py	2008-07-31 15:01:28.000000000 -0700
+@@ -29,8 +29,7 @@
+     if lib is None:
+         ## try a few more locations
+         lib_paths = [
+-            # The Framework build from Kyng Chaos:
+-            "/Library/Frameworks/GEOS.framework/Versions/Current/GEOS",
++            "@PREFIX@/lib/libgeos_c.dylib"
+         ]
+         for path in lib_paths:
+             if os.path.exists(path):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080731/80434cb6/attachment-0001.html 


More information about the macports-changes mailing list