# -*- 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           github 1.0

github.setup        tj n 11.0.0 v
github.tarball_from archive
revision            0
categories          devel
maintainers         {@akierig fastmail.de:akierig} \
                    openmaintainer

license             MIT
platforms           any
supported_archs     noarch

description         A simple tool to interactively manage Node.js versions

long_description    {*}${description}

checksums           rmd160  f9e02e6675c72ab0ea7650301a53e52bbb935b63 \
                    sha256  44e0bfd66aadff042817d1da90adaf5dfd16d269aefb4f0c79b5a4da23bd0abd \
                    size    40245

use_configure       no

build {}

destroot.args       PREFIX=${destroot}${prefix}
post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} LICENSE README.md ${destroot}${prefix}/share/doc/${name}
}

notes {
Set the environment variable N_PREFIX to install to a user-writable area:

    export N_PREFIX=$HOME/local/n

}
