[build] update macports template
# -*- 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
PortGroup java 1.0
-name {{distributionName}}
-version {{projectVersion}}
+github.setup {{repoOwner}} {{repoName}} {{projectVersion}} v
revision {{macportsRevision}}
categories {{macportsCategories}}
@@ -17,9 +17,7 @@ description {{projectDescription}}
long_description {{projectLongDescription}}
homepage {{projectWebsite}}
-
-master_sites {{macportsDistributionUrl}}
-distname {{macportsDistname}}
+github.tarball_from releases
use_zip yes
checksums rmd160 {{distributionChecksumRmd160}} \
@@ -39,18 +37,10 @@ destroot {
xinstall -m 755 -d ${target}
# Copy over the needed elements of our directory tree
- foreach f [glob -dir ${worksrcpath} *] {
- copy ${f} ${target}
- }
+ copy {*}[glob -dir ${worksrcpath} *] ${target}
# Remove extraneous files
- foreach f [glob -directory ${target}/bin *.{{distributionExecutableExtension}}] {
- delete ${f}
- }
+ delete {*}[glob -directory ${target}/bin *.bat]
ln -s ../share/${name}/bin/{{distributionExecutable}} ${destroot}${prefix}/bin/{{distributionExecutable}}
}
-
-livecheck.type regex
-livecheck.url https://jreleaser.org/releases/latest/download/VERSION
-livecheck.regex (\[0-9.\]+\\.\[0-9.\]+\\.\[0-9.\]+)
