# -*- 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.9.0
revision            0
categories-prepend  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  d62cbd5e3b7d401a904200f183b77037ecbb9c12 \
                    sha256  50a0f0d99cf09d9b3c9e36291f501c10424e8480c975dde25be59f7a14216377 \
                    size    168464

variant python310 conflicts python311 python312 python313 python314 description {Use Python 3.10} {}
variant python311 conflicts python310 python312 python313 python314 description {Use Python 3.11} {}
variant python312 conflicts python310 python311 python313 python314 description {Use Python 3.12} {}
variant python313 conflicts python310 python311 python312 python314 description {Use Python 3.13} {}
variant python314 conflicts python310 python311 python312 python313 description {Use Python 3.14} {}

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

foreach pv {314 313 312 311 310} {
    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
