<pre style='margin:0'>
Kurt Hindenburg (kurthindenburg) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e0b1b159f22853f48b1053fb6eb58552772deb46">https://github.com/macports/macports-ports/commit/e0b1b159f22853f48b1053fb6eb58552772deb46</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit e0b1b159f22853f48b1053fb6eb58552772deb46
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Sat Jul 6 09:50:37 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> shc: update to 4.0.3 and enable tests
</span>---
devel/shc/Portfile | 19 +++++++++++++++----
devel/shc/files/patch-test.diff | 21 +++++++++++++++++++++
2 files changed, 36 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/shc/Portfile b/devel/shc/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 7e12947..b024d762 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/shc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/shc/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,8 @@
</span> PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup neurobin shc 4.0.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup neurobin shc 4.0.3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span>
categories devel
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,9 +25,19 @@ long_description SHC is a generic shell script compiler. It takes a script,\
</span> compiled binary will decrypt and execute the code with the shells' -c \
option.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 ac7df1660df2a43c1298adbc5d3216d568d1b1ec \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 c6246b8e42cb18a40edb01714db2ccacf38139ff9e8f1b6ed3904e9ad3470e62 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 123487
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 e9ec69646a07c68a50e9c25e0d7496cc2716238f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a372b0c349f19cb5048499777fc8dd5c67a3c6b8a11da61225ad00bd7cbb6213 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 124300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-test.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.run yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.dir ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.cmd ./test/ttest.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.env-append CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
</span>
# Do not grab alpha releases
livecheck.regex (\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)${extract.suffix}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/shc/files/patch-test.diff b/devel/shc/files/patch-test.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c7104c0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/shc/files/patch-test.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,21 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- test/ttest.sh 2019-07-01 12:37:08.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ test/ttest.sh 2019-07-03 22:14:14.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5,7 +5,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check_opts=('' '-r' '-v' '-D' '-S')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-shc=${1-shc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++shc=./src/shc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ txtred='\e[0;31m' # Red
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ txtgrn='\e[0;32m' # Green
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -17,6 +17,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ echo "== Running tests ..."
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for shell in ${shells[@]}; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ if ! [[ -x "$shell" ]]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ continue
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ for opt in "${check_opts[@]}"; do
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tmpd=$(mktemp -d)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tmpf="$tmpd/test.$(basename $shell)"
</span></pre><pre style='margin:0'>
</pre>