[118352] trunk/dports/python

g5pw at macports.org g5pw at macports.org
Mon Mar 31 11:36:27 PDT 2014


Revision: 118352
          https://trac.macports.org/changeset/118352
Author:   g5pw at macports.org
Date:     2014-03-31 11:36:27 -0700 (Mon, 31 Mar 2014)
Log Message:
-----------
python/py-geojson:
  new port, closes #43052

Added Paths:
-----------
    trunk/dports/python/py-geojson/
    trunk/dports/python/py-geojson/Portfile
    trunk/dports/python/py-geojson/files/
    trunk/dports/python/py-geojson/files/patch-setup.py.diff

Added: trunk/dports/python/py-geojson/Portfile
===================================================================
--- trunk/dports/python/py-geojson/Portfile	                        (rev 0)
+++ trunk/dports/python/py-geojson/Portfile	2014-03-31 18:36:27 UTC (rev 118352)
@@ -0,0 +1,65 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+PortGroup           python 1.0
+
+set _name           geojson
+set _n              [string index ${_name} 0]
+
+name                py-${_name}
+version             1.0.6
+categories-append   gis
+platforms           darwin
+supported_archs     noarch
+license             BSD
+
+maintainers         bo.ingv.it:Peter.Danecek openmaintainer
+
+description         Python bindings and utilities for GeoJSON
+
+long_description    \
+    This library implements all the GeoJSON objects described in The GeoJSON \
+    Format Specification. It provides functions encoding and decoding GeoJSON \
+    formatted data and is an implementation of the Python __geo_interface__ \
+    Specification.
+
+homepage            https://github.com/frewsxcv/python-geojson
+
+distname            ${_name}-${version}
+master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
+
+checksums           md5     49bd5fcff7d43d4c295a86c886a17b8f \
+                    rmd160  7a77fbe4cd5fa31059514d6ab219d2bb687458b3 \
+                    sha256  d91cd23401b922ba597afe1f3effabfdab6af3550708b4e0cd16ab26094861b0
+
+python.versions     26 27 33 34
+
+if {${name} ne ${subport}} {
+    depends_build-append    port:py${python.version}-setuptools
+
+    patchfiles      patch-setup.py.diff
+
+    test.run        yes
+    if {${test.run}} {
+        depends_build-append    port:py${python.version}-nose \
+                                port:py${python.version}-coverage
+    }
+
+    # Adding documents
+    post-destroot {
+        set dest_doc ${destroot}${prefix}/share/doc/${subport}
+        xinstall -d  ${dest_doc}
+        xinstall -m 755 -W ${worksrcpath} \
+            CHANGELOG.rst \
+            LICENSE.rst \
+            README.rst \
+                ${dest_doc}
+    }
+
+    livecheck.type  none
+} else {
+    livecheck.type  regex
+    livecheck.url   [lindex ${master_sites} 0]
+    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
+}


Property changes on: trunk/dports/python/py-geojson/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/python/py-geojson/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-geojson/files/patch-setup.py.diff	                        (rev 0)
+++ trunk/dports/python/py-geojson/files/patch-setup.py.diff	2014-03-31 18:36:27 UTC (rev 118352)
@@ -0,0 +1,12 @@
+--- setup.orig.py
++++ setup.py
+@@ -30,8 +30,7 @@
+     packages=["geojson"],
+     package_dir={"geojson": "geojson"},
+     package_data={"geojson": ["*.rst"]},
+-    setup_requires=["nose==1.3.0"],
+-    tests_require=["nose==1.3.0", "coverage==3.6"],
++    tests_require=["nose==1.3.1", "coverage>=3.6"],
+     install_requires=["setuptools"],
+     test_suite="nose.collector",
+     classifiers=[
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140331/ba30572d/attachment.html>


More information about the macports-changes mailing list