# -*- 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 10.9.4 v
github.tarball_from archive
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  decc59e98f62353aae0799bcaec6b7814172eb62 \
                    sha256  6873a9bdd017c61ed6a8db3bac37fb293039a6a12ca9764914827817cb62271d \
                    size    58311

platform darwin {
    if {${os.major} < 25} {
        depends_lib         path:bin/node:nodejs16
        depends_build       path:bin/npm:npm8
    } else {
        depends_lib         path:bin/node:nodejs24
        depends_build       path:bin/npm:npm11
    }
}

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