# -*- 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-pyogrio
version             0.13.0
revision            0

categories-append   science gis
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Bulk-oriented spatial vector file I/O using GDAL/OGR
long_description    Pyogrio provides fast, bulk-oriented read and write access\
                    to GDAL/OGR vector data sources, such as ESRI Shapefile,\
                    GeoPackage, GeoJSON, and several others. Vector data sources\
                    typically have geometries, such as points, lines, or polygons,\
                    and associated records with potentially many columns worth of data.
homepage            https://pyogrio.readthedocs.io/

checksums           rmd160  a58bbde65f43120967d2fe150b1612d86a4f16f1 \
                    sha256  9614f27a1891113f80653e0b76b4233ea1fb3beeb1ac46d118ab22e1670f8f13 \
                    size    313103

python.versions     310 311 312 313 314

patchfiles-append   patch_pyproject.diff

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

    depends_lib-append \
                    port:gdal \
                    port:py${python.version}-certifi \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging

    if {${python.version} < 311} {
        depends_lib-append  \
                    port:py${python.version}-tomli
    }
}
