<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/73e109c7ce1bc4317d689e787e1e6b0ea00907b2">https://github.com/macports/macports-ports/commit/73e109c7ce1bc4317d689e787e1e6b0ea00907b2</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 73e109c7ce1 goreleaser: run build and post-build step in a unified build script
</span>73e109c7ce1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 73e109c7ce1bc4317d689e787e1e6b0ea00907b2
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Tue Jul 27 17:27:12 2021 -0400
<span style='display:block; white-space:pre;color:#404040;'> goreleaser: run build and post-build step in a unified build script
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/63305
</span>---
devel/goreleaser/Portfile | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/goreleaser/Portfile b/devel/goreleaser/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 846254bceb1..f884b59df5b 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/goreleaser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/goreleaser/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,16 +23,24 @@ checksums rmd160 58dc99e922c3d87b637e5a9b3a995480bb5b8bf3 \
</span> sha256 0553029140c06b56ebed9c47de5d9efc16398e4f5ad54deff53d009cbb1a2d42 \
size 586525
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set build_script ${worksrcpath}/_build.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Allow deps to be fetched at build-time.
build.env-delete GO111MODULE=off GOPROXY=off
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.pre_args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -ldflags \" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -X main.version=${version} -X main.builtBy=macports \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- \"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.cmd ${build_script}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bs [open "${build_script}" w+]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${bs} "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${bs} "set -x"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${bs} "${go.bin} build -ldflags \" -X main.version=${version} -X main.builtBy=macports \" "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${bs} "./scripts/completions.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ close ${bs}
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "${build.env} ./scripts/completions.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${build_script} -permissions 0755
</span> }
destroot {
</pre><pre style='margin:0'>
</pre>