# -*- 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-fiona
version             1.8.6
revision            0
categories-append   gis
platforms           darwin
license             BSD

python.versions     27 34 35 36 37

maintainers         {stromnov @stromnov} openmaintainer

description         OGR's neat, nimble, no-nonsense API for Python programmers.

long_description    Fiona provides uncomplicated Python interfaces \
                    to functions in OGR, the best open source C/C++ \
                    library for reading and writing geographic vector data.

homepage            https://github.com/Toblerity/Fiona
master_sites        pypi:F/Fiona

distname            Fiona-${version}

checksums           rmd160  88360ebb56e17a30596c3f8b5de5c144b2fd1c18 \
                    sha256  fa31dfe8855b9cd0b128b47a4df558f1b8eda90d2181bff1dd9854e5556efb3e \
                    size    1713605

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-setuptools \
                        port:py${python.version}-attrs \
                        port:py${python.version}-click \
                        port:py${python.version}-cligj \
                        port:py${python.version}-click-plugins \
                        port:py${python.version}-six \
                        port:py${python.version}-munch \
                        port:gdal

    if {${python.version} == 27} {
        depends_lib-append  port:py${python.version}-enum34
    }

    livecheck.type      none
} else {
    livecheck.name      Fiona
}