# -*- 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 10.2.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
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  9721e0f6abb69f739c549b5f4a224ed3abb4bbb0 \
                    sha256  3c27dccf28b8e0f858da879b544f819010d7fd66ad72af7a2483a515905884e1 \
                    size    38170

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

}
