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

python.versions     310 311 312 313 314

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  2bfb5995f240cb85c19eacdbff51881fb7dc3280 \
                    sha256  b00ae357669460c6491caba29c2022ff0acfcbde86a95361ea8ff5cd14a86b68 \
                    size    444606

if {${name} ne ${subport}} {
    compiler.cxx_standard 2011

    patchfiles-append   patch-pyproject.toml.diff

    depends_build-append \
                        port:py${python.version}-cython

    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:gdal
}
