[127796] trunk/dports/python/py-rtree

stromnov at macports.org stromnov at macports.org
Tue Nov 4 03:24:06 PST 2014


Revision: 127796
          https://trac.macports.org/changeset/127796
Author:   stromnov at macports.org
Date:     2014-11-04 03:24:05 -0800 (Tue, 04 Nov 2014)
Log Message:
-----------
py-rtree: update to version 0.8.1

Modified Paths:
--------------
    trunk/dports/python/py-rtree/Portfile
    trunk/dports/python/py-rtree/files/patch-rtree_core.py.diff

Modified: trunk/dports/python/py-rtree/Portfile
===================================================================
--- trunk/dports/python/py-rtree/Portfile	2014-11-04 10:09:48 UTC (rev 127795)
+++ trunk/dports/python/py-rtree/Portfile	2014-11-04 11:24:05 UTC (rev 127796)
@@ -5,7 +5,7 @@
 PortGroup           python 1.0
 
 name                py-rtree
-version             0.8.0
+version             0.8.1
 revision            0
 categories-append   devel
 platforms           darwin
@@ -27,8 +27,8 @@
 
 distname            Rtree-${version}
 
-checksums           rmd160  873a3532cfbbcc708f3a2f7644ef234c7e445803 \
-                    sha256  60b29b4b15b8108829355e5a51d5da43ab67ab55e1a47bc11f39be4e09087c32
+checksums           rmd160  41bbbc8d0ae09351010ebab47c6e1ae9534bb008 \
+                    sha256  1afd83d6a886d78b4912ce21dab782487ba4dcf64134f2670b8fb82535d56b7c
 
 if {${name} ne ${subport}} {
     depends_lib-append  port:spatialindex
@@ -39,7 +39,7 @@
     patchfiles          patch-rtree_core.py.diff
 
     post-patch {
-        reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/rtree/core.py
+        reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/rtree/core.py
     }
 
     livecheck.type      none

Modified: trunk/dports/python/py-rtree/files/patch-rtree_core.py.diff
===================================================================
--- trunk/dports/python/py-rtree/files/patch-rtree_core.py.diff	2014-11-04 10:09:48 UTC (rev 127795)
+++ trunk/dports/python/py-rtree/files/patch-rtree_core.py.diff	2014-11-04 11:24:05 UTC (rev 127796)
@@ -1,11 +1,11 @@
---- rtree/core.py.orig	2014-07-19 12:00:42.000000000 +0400
-+++ rtree/core.py	2014-07-21 15:41:48.000000000 +0400
-@@ -105,7 +105,7 @@
+--- rtree/core.py.orig	2014-11-04 14:14:05.000000000 +0300
++++ rtree/core.py	2014-11-04 14:20:22.000000000 +0300
+@@ -103,6 +103,8 @@
+ elif os.name == 'posix':
      platform = os.uname()[0]
-     lib_name = 'libspatialindex_c.so'
-     if platform == 'Darwin':
--        lib_name = 'libspatialindex_c.dylib'
-+        lib_name = '@@PREFIX@@/lib/libspatialindex_c.dylib'
+     lib_name = find_library('spatialindex_c')
++    if not lib_name and platform == 'Darwin':
++        lib_name = '@PREFIX@/lib/libspatialindex_c.dylib'
      rt = ctypes.CDLL(lib_name)
-     free = ctypes.CDLL(None).free # None -> libc
  else:
+     raise RTreeError('Unsupported OS "%s"' % os.name)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141104/b37118a9/attachment.html>


More information about the macports-changes mailing list