Skip to content
Permalink
Browse files

python/py-geojson:

  new port, closes https://trac.macports.org/ticket/43052

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118352 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
g5pw committed Mar 31, 2014
1 parent 4e1206b commit a1fd1216db9b6980607412b18de2d6cdfbb6751d
Showing with 77 additions and 0 deletions.
  1. +65 −0 python/py-geojson/Portfile
  2. +12 −0 python/py-geojson/files/patch-setup.py.diff
@@ -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}<"
}
@@ -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=[

0 comments on commit a1fd121

Please sign in to comment.
You can’t perform that action at this time.