# -*- 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.10.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  b328bc96e6f95bdbe775ca86317aab11ba1bad59 \
                    sha256  996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb \
                    size    55611

python.versions     310 311 312 313 314

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