<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5df51ac78a2511757a8647dfe47829395b49f704">https://github.com/macports/macports-ports/commit/5df51ac78a2511757a8647dfe47829395b49f704</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 5df51ac78a2 pkl: new port (version 0.25.1)
</span>5df51ac78a2 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5df51ac78a2511757a8647dfe47829395b49f704
</span>Author: Link Dupont <link@sub-pop.net>
AuthorDate: Wed Feb 7 13:18:37 2024 -0500
<span style='display:block; white-space:pre;color:#404040;'> pkl: new port (version 0.25.1)
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Signed-off-by: Link Dupont <link@sub-pop.net>
</span>---
lang/pkl/Portfile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 53 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/pkl/Portfile b/lang/pkl/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..13ef8343427
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/pkl/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,53 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup java 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup apple pkl 0.25.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.version 17+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+java.fallback openjdk17
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {sub-pop.net:link @subpop} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A configuration as code language with rich validation and tooling
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Pkl (pronounced Pickle) is an embeddable configuration \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ language which provides rich support for data templating \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ and validation. It can be used from the command line, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ integrated in a build pipeline, or embedded in a program. \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Pkl scales from small to large, simple to complex, ad-hoc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ to repetitive configuration tasks.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 eeaf157c2944116c761c74c1e19afe03dcffb13c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 f60412679a9a8a1740e81cbed89a3ca9ddc9aa2cf0c487ff8a8a9fce70c0bf4a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2769725
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs arm64 x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd ./gradlew --info --stacktrace
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${configure.build_arch} eq "arm64"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system "${patch.cmd} -p1 -d ${worksrcpath} < ${worksrcpath}/patches/graalVm23.patch"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target pkl-cli:macExecutableAarch64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set arch_name aarch64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target pkl-cli:macExecutableAmd64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set arch_name amd64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.post_args -DreleaseBuild=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append GRADLE_USER_HOME=${worksrcpath}/gradle \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GRAALVM_HOME=${workpath}/.graalvm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 ${worksrcpath}/pkl-cli/build/executable/pkl-macos-${arch_name} ${destroot}${prefix}/bin/pkl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>