# -*- 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 7.0.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 873dcc1c232e26709ce199d3223e106c52a10b49 \ sha256 3e550790aeeb1e7be64496e952ce2f77364bdc90e4e85d99479594e7b479e695 \ size 1983412 npm.rootname [join [lrange [split ${name} -] 0 1] -] post-destroot { reinplace "s|error.code === 'ENOENT'|error.code === 'ENOENT' \\\|\\\| error.code === 'EACCES'|" \ ${destroot}${prefix}/lib/node_modules/${npm.rootname}/compose-icon.js } variant dmg_icon description {Enable custom DMG icon based on the app icon} { depends_run-append \ port:ImageMagick \ port:GraphicsMagick } platform darwin { if {${os.major} <= 20} { # 11.0- npm.nodejs_version \ 18 npm.version 9 } }