# -*- 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-nodeenv
version             1.12.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {reneeotten @reneeotten} openmaintainer

description         Node.js virtual environment builder
long_description    {*}${description}

homepage            https://github.com/ekalinin/nodeenv

checksums           rmd160  1983bc13dd32e9f9589ae6f83d48ae8c046035fb \
                    sha256  4ea7f88339310afebc3253f2c7a91b94bacf97d73a36a5c108962abdfaca501e \
                    size    131292

python.versions     311 312 313 314 315

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

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