# -*- 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-pdal
version             3.5.3
revision            0

categories-append   gis
license             BSD
maintainers         {yahoo.com:n_larsson @nilason} openmaintainer

description         PDAL Python support
long_description    {*}${description} allows you to process data with PDAL\
                    into Numpy arrays. It provides a PDAL extension module to\
                    control Python interaction with PDAL. Additionally, you\
                    can use it to fetch schema and metadata from PDAL operations.

homepage            https://www.pdal.io

checksums           rmd160  77e39032cbb9e7770da96ccd7a8c1681a59935f1 \
                    sha256  1d8fb955b91b97ff927d99295d719f8dada16b2c85f778d5c38cf04dcd44f3cc \
                    size    113622

python.versions     310 311 312 313

patchfiles          patch_pyproject_pybind11.diff

if {${name} ne ${subport}} {
    compiler.cxx_standard \
                    2017

    depends_build-append \
                    path:bin/cmake:cmake \
                    port:ninja \
                    port:py${python.version}-pybind11 \
                    port:py${python.version}-scikit-build-core

    depends_lib-append \
                    port:pdal \
                    port:py${python.version}-numpy

    depends_test-append \
                    port:py${python.version}-meshio \
                    port:py${python.version}-pandas

    build.env-append \
                    pybind11_DIR=${python.pkgd}/pybind11/share/cmake/pybind11

    test.run        yes
 }
