# -*- 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-geoviews
version             1.15.1
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Geographic visualizations for HoloViews.
long_description    {*}${description}
homepage            https://github.com/holoviz/geoviews

checksums           rmd160  d63072ffb7c848f1cc02633cd0e9d7905640b4e3 \
                    sha256  c72097ef4f24895c46f95834e5c19ac185ea1c34fd610f0f956421ba515d4aad \
                    size    507037

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    depends_lib-append  \
                    port:py${python.version}-bokeh \
                    port:py${python.version}-cartopy \
                    port:py${python.version}-holoviews \
                    port:py${python.version}-numpy \
                    port:py${python.version}-packaging \
                    port:py${python.version}-panel \
                    port:py${python.version}-param \
                    port:py${python.version}-pyproj \
                    port:py${python.version}-shapely \
                    port:py${python.version}-xyzservices

    platform darwin {
        if {${os.major} > 21} {
            depends_lib-append \
                    port:nodejs24
        }
        if {${os.major} > 18 && ${os.major} < 22} {
            depends_lib-append \
                    port:nodejs22
        }
        if {${os.major} > 15 && ${os.major} < 19} {
            depends_lib-append \
                    port:nodejs20
        }
        if {${os.major} > 10 && ${os.major} < 16} {
            depends_lib-append \
                    port:nodejs16
        }

        if {${os.major} > 15} {
            depends_build-append \
                    port:npm11
        }
        if {${os.major} > 12 && ${os.major} < 16} {
            depends_build-append \
                    port:npm9
        }
        if {${os.major} < 13} {
            depends_build-append \
                    port:npm8
        }
    }
}
