# -*- 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.9.6
revision            2
categories-append   gis
license             BSD

python.versions     39 310 311 312

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           md5 f68ffc970f682adc1026a3fca20067bc \
                    rmd160 934ba5b44916461f1abf12e6a152e1bf84626729 \
                    sha256 791b3494f8b218c06ea56f892bd6ba893dfa23525347761d066fb7738acda3b1 \
                    size   411019

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-cython \
                        port:py${python.version}-oldest-supported-numpy \
                        port:py${python.version}-numpy

    depends_lib-append  port:py${python.version}-attrs \
                        port:py${python.version}-certifi \
                        port:py${python.version}-click \
                        port:py${python.version}-click-plugins \
                        port:py${python.version}-cligj \
                        port:py${python.version}-six \
                        port:gdal

    if {${python.version} < 310} {
        depends_lib-append  port:py${python.version}-importlib-metadata
    }
}
