# -*- 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                verde
version             1.8.1
revision            0
categories-append   science
license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Verde is a Python library for processing spatial data
long_description    {*}${description} (bathymetry, geophysics surveys, etc) and \
                    interpolating it on regular grids (i.e., gridding).
homepage            https://github.com/fatiando/verde

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  1c3f62f27c43cc142e35e3ece508c3a12e21d5d9 \
                    sha256  e97a55ceecb1a4bbc6ad09232738cce95b6c93d82d514b9f64dea14ded505ec3 \
                    size    165904

variant python39 conflicts python310 python311 python312 python313 description {Use Python 3.9} {}
variant python310 conflicts python39 python311 python312 python313 description {Use Python 3.10} {}
variant python311 conflicts python39 python310 python312 python313 description {Use Python 3.11} {}
variant python312 conflicts python39 python310 python311 python313 description {Use Python 3.12} {}
variant python313 conflicts python39 python310 python311 python312 description {Use Python 3.13} {}

if {![variant_isset python39] && ![variant_isset python310] && ![variant_isset python311] && ![variant_isset python312]} {
    default_variants +python313
}

foreach pv {313 312 311 310 39} {
    if {[variant_isset python${pv}]} {
        python.default_version ${pv}
        break
    }
}

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

depends_lib-append  port:py${python.version}-dask \
                    port:py${python.version}-numpy \
                    port:py${python.version}-pandas \
                    port:py${python.version}-pooch \
                    port:py${python.version}-scikit-learn \
                    port:py${python.version}-scipy \
                    port:py${python.version}-xarray
