<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/04e0f6b832293b789a18ff5838c499cc6877bfb1">https://github.com/macports/macports-ports/commit/04e0f6b832293b789a18ff5838c499cc6877bfb1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 04e0f6b832293b789a18ff5838c499cc6877bfb1
</span>Author: Kurt Hindenburg <kurt.hindenburg@gmail.com>
AuthorDate: Thu May 23 07:44:19 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> flawfinder: update to 2.0.9; use python 3.7
</span>---
devel/flawfinder/Portfile | 15 ++++++++-------
devel/flawfinder/files/patch-remove_python2.diff | 21 +++++++++++++--------
2 files changed, 21 insertions(+), 15 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/flawfinder/Portfile b/devel/flawfinder/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ee9c4f6..6c6d419 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/flawfinder/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/flawfinder/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,8 @@
</span> PortSystem 1.0
name flawfinder
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.0.8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.0.9
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span> categories devel
license GPL-2+
maintainers {khindenburg @kurthindenburg} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,16 +22,16 @@ platforms darwin
</span> supported_archs noarch
master_sites ${homepage}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 9bf1dd0e0a5044cbdf19fa9947859cf709fe64c3 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 65e05788c2e57b4037de58a42b787abd1e3f249656660cf6a3c1e9ad98a46b37 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 251546
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 3d5ca91aac1882f3153b36cee06881f9053d7caa \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d7aefd002cb63e125ff20bc2960388cf63e202b7e7f971e47129f2214faca90a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 252712
</span>
patchfiles patch-remove_python2.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:python36
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:python37
</span>
post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/bin/env python|${prefix}/bin/python3.6|" ${worksrcpath}/flawfinder
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/bin/env python|${prefix}/bin/python3.7|" ${worksrcpath}/flawfinder
</span> }
use_configure no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,4 +45,4 @@ destroot {
</span>
test.run yes
test.target check
<span style='display:block; white-space:pre;background:#ffe0e0;'>-test.env-append PYTHON3=${prefix}/bin/python3.6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.env-append PYTHON3=${prefix}/bin/python3.7
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/flawfinder/files/patch-remove_python2.diff b/devel/flawfinder/files/patch-remove_python2.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 243a6c6..c528248 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/flawfinder/files/patch-remove_python2.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/flawfinder/files/patch-remove_python2.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,20 +1,25 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- makefile 2018-01-26 00:26:27.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ makefile 2018-04-05 21:57:18.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -14,7 +14,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- makefile 2019-05-17 19:48:54.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ makefile 2019-05-23 07:27:44.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -12,9 +12,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ARCH=noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> SAMPLE_DIR=/usr/src/linux-2.2.16
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PYTHON=python
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PYTHON2=python2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PYTHON=python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PYTHON2=python2
</span> -PYTHON3=python3
<span style='display:block; white-space:pre;background:#e0ffe0;'>++#PYTHON=python
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#PYTHON2=python2
</span> +#PYTHON3=$(PYTHON3)
# Flawfinder has traditionally used INSTALL_DIR, INSTALL_DIR_BIN, and
# INSTALL_DIR_MAN. Here we add support for GNU variables like prefix, etc.;
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -185,14 +185,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -195,14 +195,15 @@
</span> # output shows differences from expected results.
# If everything works as expected, it just prints test numbers.
# Set PYTHON as needed, including to ""
<span style='display:block; white-space:pre;background:#ffe0e0;'>--test: test_001 test_002 test_003 test_004 test_005 test_006 test_007
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+test: test_001 test_002 test_003 test_004 test_005 test_006
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-test: test_001 test_002 test_003 test_004 test_005 test_006 test_007 test_008
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# test_008 - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++test: test_001 test_002 test_003 test_004 test_005 test_006 test_007
</span> @echo 'All tests pass!'
# Usual check routine. Run all tests using *both* python2 and python3.
</pre><pre style='margin:0'>
</pre>