# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-pyshp
version             2.3.1
revision            0

categories-append   gis
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {petr @petrrr} openmaintainer

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            https://github.com/GeospatialPython/pyshp

checksums           rmd160  ffff0668174ed920964358928a04be0057365b66 \
                    sha256  4caec82fd8dd096feba8217858068bacb2a3b5950f43c048c6dc32a3489d5af1 \
                    size    1731544

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} README.md \
            LICENSE.TXT changelog.txt ${dest_doc}
    }
}
