# -*- 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-lazy_loader
version             0.5
revision            0

platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
license             BSD

description         load subpackages and functions on demand

long_description    ${python.rootname} makes it easy to load \
                    subpackages and functions on demand.

homepage            https://scientific-python.org/specs/spec-0001/

checksums           md5 c118985a3f8cc7d91a8b160002ba551f \
                    rmd160 1be0969cc57c4650e7c80c783a4d61c43394aff9 \
                    sha256 717f9179a0dbed357012ddad50a5ad3d5e4d9a0b8712680d4e687f5e6e6ed9b3 \
                    size 15294

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE.md README.md \
            ${destroot}${docdir}
    }

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