[121339] trunk/dports/python/py-pyshp/Portfile

petr at macports.org petr at macports.org
Mon Jun 23 14:42:44 PDT 2014


Revision: 121339
          https://trac.macports.org/changeset/121339
Author:   petr at macports.org
Date:     2014-06-23 14:42:43 -0700 (Mon, 23 Jun 2014)
Log Message:
-----------
py-pyshp @1.2.0: update to @1.2.1, closes #43930

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

Modified: trunk/dports/python/py-pyshp/Portfile
===================================================================
--- trunk/dports/python/py-pyshp/Portfile	2014-06-23 21:04:30 UTC (rev 121338)
+++ trunk/dports/python/py-pyshp/Portfile	2014-06-23 21:42:43 UTC (rev 121339)
@@ -4,9 +4,12 @@
 PortSystem          1.0
 PortGroup           python 1.0
 
-name                py-pyshp
-set real_name       pyshp
-version             1.2.0
+set _name           pyshp
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
+
+version             1.2.1
 categories-append   gis
 platforms           darwin
 supported_archs     noarch
@@ -24,22 +27,35 @@
                     files with all types of geometry. Everything in the \
                     public ESRI shapefile specification is implemented.
 
-homepage            http://code.google.com/p/${real_name}/
+homepage            http://code.google.com/${_n}/${_name}/
 
-distname            ${real_name}-${version}
-master_sites        https://pypi.python.org/packages/source/p/${real_name}
+distname            ${_name}-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}
 
-checksums           md5     9075f34109f0bb4b45a90fd1fb5db94b \
-                    rmd160  1e507e974a1c2f5f599d7201921ceaf8aa916138 \
-                    sha256  16e9a9b5caae5b69149c7be09415381b61af4f85f2087d08c0698c75e70000e7
+checksums           md5     156654b3c7878c4a31d27e4b9dc34377 \
+                    rmd160  567ecaba8235d4e7be5ad4a51ede921e3059e18a \
+                    sha256  eb4a1999f7c7bd573f3c8920344f50bd86221114980f07f521858d23654a33b0
 
 python.versions     26 27 32 33 34
 
 if {${name} ne ${subport}} {
     depends_build-append    port:py${python.version}-setuptools
+
+    # Adding documentation
+    post-destroot {
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d  ${dest_doc}
+        xinstall -m 755 -W ${worksrcpath} \
+            README.pdf \
+            README.html \
+            README.txt \
+            changelog.txt \
+                ${dest_doc}
+    }
+
     livecheck.type      none
 } else {
     livecheck.type      regex
-    livecheck.url       https://pypi.python.org/pypi/${real_name}
-    livecheck.regex     ${real_name}-(\[0-9.\]+)${extract.suffix}
+    livecheck.url       [lindex ${master_sites} 0]
+    livecheck.regex     ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140623/4da5ffd6/attachment.html>


More information about the macports-changes mailing list