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

name                create-dmg-js
version             8.1.0
revision            0

categories          sysutils archivers
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Create a good-looking DMG for your macOS app in seconds
long_description    ${description}

homepage            https://github.com/sindresorhus/create-dmg

checksums           rmd160  aa9038379bde5aa19339ca5f4f91b462301d8d52 \
                    sha256  41533b01e3439716e5858866b7990be026ff561c74ad718d53c4d88459e84517 \
                    size    527262

npm.rootname        [join [lrange [split ${name} -] 0 1] -]

# Requires rebuilding if node version changes
platform darwin {
    if {${os.major} <= 20} {
        # 11.0-
        npm.nodejs_version \
                    20
        npm.version 10
    } else {
        npm.nodejs_version \
                    24
        npm.version 11
    }
}
