# -*- 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.4.5
revision            2

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  54a87f165cbbbbe285340f876521d9b4938cb6ba \
                    sha256  6e42ec8c368a9d1c14abf0eff13a5b9d28b6de08ef7c2ca2b4900a15186d46f4 \
                    size    89528

python.versions     39 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
 }
