# -*- 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        jakejs jake 8.1.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0
platforms           any
categories          devel
maintainers         nomaintainer
license             Apache-2
supported_archs     noarch

description         JavaScript build tool for Node.js, similar to make or rake

long_description    ${name} is a {*}${description}.

checksums           rmd160  6c854bac3652902cb4c4bacb2dca8023bb43da2b \
                    sha256  6ee88d0299ede6008ed1575cd590ffd7860abe412432ad3796abf5f5fa67517d \
                    size    636571

depends_lib         path:bin/node:nodejs10
depends_build       path:bin/npm:npm6

use_configure       no

destroot.args       PREFIX=${prefix}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    ln -s ../../../lib/node_modules/jake/README.md ${docdir}
}
