<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/b37e601b109e4a6abd66b0f5484edba8a08a7fb4">https://github.com/macports/macports-ports/commit/b37e601b109e4a6abd66b0f5484edba8a08a7fb4</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 b37e601b109 jet: new submission (version 0.6.26)
</span>b37e601b109 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit b37e601b109e4a6abd66b0f5484edba8a08a7fb4
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Thu Jul 27 12:00:31 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> jet: new submission (version 0.6.26)
</span>---
textproc/jet/Portfile | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/jet/Portfile b/textproc/jet/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..21a174bb253
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/jet/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,70 @@
</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 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 borkdude jet 0.6.26 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from releases
</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;'>+maintainers {@catap korins.ky:kirill} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license EPL-1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories textproc devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description CLI to transform between JSON, EDN, YAML and Transit using Clojure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${name}-${version}-standalone.jar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 7730a89dbb9117d066a633aad51cfbad6a6d5a43 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 ce5488219d1857abacb20032973f101a62818bc3302083339a5a087f86c7bc75 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 13531702
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.only
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant jdk17 conflicts jdk11 description {Build using JDK 17} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:openjdk17-graalvm
</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;'>+variant jdk11 conflicts jdk17 description {Build using the older JDK 11} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:openjdk11-graalvm-native-image
</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;'>+if {![variant_isset jdk11] && ![variant_isset jdk17]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ default_variants +jdk17
</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;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-fetch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {![variant_isset jdk11] && ![variant_isset jdk17]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ error "Either +jdk11 or +jdk17 is required"
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Leaving this stub since we cannot declare global variables in the scope of pre-fetch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set graalvm_home /Library/Java/JavaVirtualMachines
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset jdk17]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set graalvm_home ${graalvm_home}/openjdk17-graalvm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {[variant_isset jdk11]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set graalvm_home ${graalvm_home}/openjdk11-graalvm
</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;'>+ set graalvm_home ${graalvm_home}/Contents/Home
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # See: https://github.com/borkdude/jet/blob/master/script/compile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set args "-H:+ReportExceptionStackTraces"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append args " --verbose"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append args " --no-fallback"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append args " --no-server"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append args " -J-Djet.native=true"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${workpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${graalvm_home}/bin/native-image -jar [shellescape ${distpath}/${distfiles}] ${args}"
</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;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${workpath}/jet ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>