Revision: 38804 http://trac.macosforge.org/projects/macports/changeset/38804 Author: landonf@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):