# -*- 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-panel-material-ui
python.rootname     panel_material_ui
version             0.16.6
revision            0

license             BSD
maintainers         {mps @Schamschula} openmaintainer
description         Panel Material UI – a library that brings the sleek design and \
                    comprehensive component set of Material UI into the world of Panel.
long_description    {*}${description}
homepage            https://github.com/panel-extensions/panel-material-ui

checksums           rmd160  003aaac0167b25b0cf5b25923b793ea724d6cb43 \
                    sha256  8e89f5077328b9a646a08fb5f3ae57e17a0501fe81553a6c9203eace4d036725 \
                    size    4109211

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    depends_lib-append  \
                    port:py${python.version}-bokeh \
                    port:py${python.version}-packaging \
                    port:py${python.version}-panel

    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
        }
    }
}
