<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/9852b3334edc7c15896ac869a465bae970fba340">https://github.com/macports/macports-ports/commit/9852b3334edc7c15896ac869a465bae970fba340</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 9852b3334edc7c15896ac869a465bae970fba340
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Mon Oct 16 13:58:01 2023 -0400
<span style='display:block; white-space:pre;color:#404040;'> bashunit: patch before build for MacPorts bash instead of post-build
</span>---
devel/bashunit/Portfile | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/bashunit/Portfile b/devel/bashunit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2f767664a78..36af4fcc2d5 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/bashunit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/bashunit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup github 1.0
github.setup TypedDevs bashunit 0.9.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
homepage https://bashunit.typeddevs.com/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -35,10 +35,13 @@ use_configure no
</span>
build.cmd ./build.sh
<span style='display:block; white-space:pre;background:#ffe0e0;'>-post-build {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Force bashunit to use MacPorts bash
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "s|#!/bin/bash|#!${prefix}/bin/bash|g" ${worksrcpath}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Force use of MacPorts bash
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach srcscript [glob ${worksrcpath}/src/*.sh] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|#!/bin/bash|#!${prefix}/bin/bash|g" ${srcscript}
</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;'>+ reinplace -E "s|#!/bin/bash|#!${prefix}/bin/bash|g" ${worksrcpath}/build.sh
</span> }
destroot {
</pre><pre style='margin:0'>
</pre>