# -*- 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: Portfile 114468 2013-12-09 13:20:18Z mojca@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pyshp
set real_name       pyshp
version             1.2.0
categories-append   gis
platforms           darwin
supported_archs     noarch

maintainers         bo.ingv.it:peter.danecek openmaintainer

license             MIT

description         Python Shapefile Library

long_description    PyShp library provides read and write support for the \
                    ESRI shapefile format in pure Python. This format is a \
                    popular Geographic Information System vector data format \
                    created by ESRI. You can read and write shp, shx, and dbf \
                    files with all types of geometry. Everything in the \
                    public ESRI shapefile specification is implemented.

homepage            http://code.google.com/p/${real_name}/

distname            ${real_name}-${version}
master_sites        https://pypi.python.org/packages/source/p/${real_name}

checksums           md5     9075f34109f0bb4b45a90fd1fb5db94b \
                    rmd160  1e507e974a1c2f5f599d7201921ceaf8aa916138 \
                    sha256  16e9a9b5caae5b69149c7be09415381b61af4f85f2087d08c0698c75e70000e7

python.versions     26 27 32 33 34

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://pypi.python.org/pypi/${real_name}
    livecheck.regex     ${real_name}-(\[0-9.\]+)${extract.suffix}
}
