# -*- 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-geojson
version             3.2.0
revision            0

categories-append   gis
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {petr @petrrr} 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/jazzband/geojson

checksums           rmd160  5091e3ea8cd597d50293e49feeb16e500ababe5e \
                    sha256  b860baba1e8c6f71f8f5f6e3949a694daccf40820fa8f138b3f712bd85804903 \
                    size    24574

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    test.run        yes

    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${dest_doc}
        xinstall -m 0644 -W ${worksrcpath} CHANGELOG.rst \
            LICENSE.rst README.rst ${dest_doc}
    }
}
