<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/412122c381f96e157e3f9022b25a09de676f907f">https://github.com/macports/macports-ports/commit/412122c381f96e157e3f9022b25a09de676f907f</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 412122c flawfinder: update to 2.0.6; switch to python3.6
</span>412122c is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 412122c381f96e157e3f9022b25a09de676f907f
</span>Author: Kurt Hindenburg <khindenburg@macports.org>
AuthorDate: Thu Apr 5 22:01:29 2018 -0400
<span style='display:block; white-space:pre;color:#404040;'> flawfinder: update to 2.0.6; switch to python3.6
</span>---
devel/flawfinder/Portfile | 17 ++++++++------
devel/flawfinder/files/patch-remove_python2.diff | 30 ++++++++++++++++++++++++
2 files changed, 40 insertions(+), 7 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 10670a1..a14fdc0 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,7 @@
</span> PortSystem 1.0
name flawfinder
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.0.4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.0.6
</span> categories devel
license GPL-2+
maintainers {khindenburg @kurthindenburg} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,15 +21,16 @@ platforms darwin
</span> supported_archs noarch
master_sites ${homepage}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 8811f2e373c887a55d9c51d2849499a8b10481d4 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 43ffe3bd19cafbc4f24c53c6d80810297ebfbf9a72b693e58e59775813ee66ec
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 711968d347dc8828e858ed977f7ff26c0ba38d87 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d33caeb94fc7ab80b75d2a7a871cb6e3f70e50fb835984e8b4d56e19ede143fc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 247367
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# Per docs, this doesn't work with any python3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-# The latest version supposedly works with python3 - need to test
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:python27
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-remove_python2.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib port:python36
</span>
post-patch {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|/usr/bin/env python|${prefix}/bin/python2.7|" ${worksrcpath}/flawfinder
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|/usr/bin/env python|${prefix}/bin/python3.6|" ${worksrcpath}/flawfinder
</span> }
use_configure no
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,3 +43,5 @@ destroot {
</span> }
test.run yes
<span style='display:block; white-space:pre;background:#e0ffe0;'>+test.target check
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+test.env-append PYTHON3=${prefix}/bin/python3.6
</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>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..243a6c6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</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;'>@@ -0,0 +1,30 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- makefile 2018-01-26 00:26:27.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ makefile 2018-04-05 21:57:18.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -14,7 +14,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SAMPLE_DIR=/usr/src/linux-2.2.16
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>+-PYTHON3=python3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#PYTHON3=$(PYTHON3)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Flawfinder has traditionally used INSTALL_DIR, INSTALL_DIR_BIN, and
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # INSTALL_DIR_MAN. Here we add support for GNU variables like prefix, etc.;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -185,14 +185,14 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # output shows differences from expected results.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If everything works as expected, it just prints test numbers.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Set PYTHON as needed, including to ""
</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><span style='display:block; white-space:pre;background:#e0ffe0;'>++test: test_001 test_002 test_003 test_004 test_005 test_006
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @echo 'All tests pass!'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Usual check routine. Run all tests using *both* python2 and python3.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ check:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @echo "Testing with $(PYTHON2)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @PYTHON="$(PYTHON2)" $(MAKE) test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- @echo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# @echo "Testing with $(PYTHON2)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# @PYTHON="$(PYTHON2)" $(MAKE) test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# @echo
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @echo "Testing with $(PYTHON3)"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @PYTHON="$(PYTHON3)" $(MAKE) test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>