Files
Joshua Root 8053856e7b aqua/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-08 08:57:04 +11:00

59 lines
1.8 KiB
Tcl

# -*- 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 piksels-and-lines-orchestra inkscape 628ca88bdb258c0be08a5aa6337ed6df31190326
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name inkscape-app
version 1.2
revision 1
categories aqua graphics
license GPL-2+
platforms {darwin any}
supported_archs noarch
maintainers nomaintainer
description Inkscape.app application bundle
long_description {*}${description}
homepage http://www.inkscape.org
# we only need to download the icns file
master_sites ${github.raw}/${git.branch}/packaging/macosx/Resources
distfiles Inkscape.icns
checksums rmd160 a0dc6e65125ad2d4554728515996c473b9aac671 \
sha256 0ae10f9edd037c72b445d797e8be257dde94ef19d3df19e6aeabb1c0ec87fcca \
size 175323
extract.mkdir yes
use_configure no
depends_run path:bin/inkscape:inkscape
extract {
copy ${distpath}/Inkscape.icns ${worksrcpath}
}
build {}
destroot {
set inkapp ${destroot}${applications_dir}/Inkscape.app
xinstall -d ${inkapp}/Contents/MacOS
xinstall -d ${inkapp}/Contents/Resources
xinstall -m 644 ${filespath}/Info.plist ${inkapp}/Contents/
xinstall -m 644 ${worksrcpath}/Inkscape.icns ${inkapp}/Contents/Resources/
xinstall -m 755 ${filespath}/Inkscape ${inkapp}/Contents/MacOS
reinplace -W ${inkapp}/Contents/MacOS "s,@@PREFIX@@,${prefix},g" Inkscape
}
# Dummy variant, ensuring user's preference cascades to dependencies
variant quartz {}
livecheck.type none