# -*- 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
python.rootname     Fiona
version             1.8.19
revision            0
categories-append   gis
platforms           darwin
license             BSD

python.versions     35 36 37 38 39

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

checksums           rmd160  35d07359d33b730aba555eb3439c9bd2dcbda164 \
                    sha256  b9059e0b29c2e9e6b817e53f941e77e1aca7075f986005d38db307067b60458f \
                    size    1286561

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

    livecheck.type      none
}

# Note: py27 subport requires missing py27-orderdict port and py34 subport is no longer supported
foreach {old new} {27 35} {
    subport py${old}-fiona "
        replaced_by py${new}-fiona
        PortGroup obsolete 1.0
    "
}
