Skip to content

Commit

Permalink
flawfinder: update to 2.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kurthindenburg committed Jun 28, 2019
1 parent ed8902f commit 5b97320
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions devel/flawfinder/Portfile
Expand Up @@ -3,7 +3,7 @@
PortSystem 1.0

name flawfinder
version 2.0.9
version 2.0.10
revision 0
categories devel
license GPL-2+
Expand All @@ -22,16 +22,19 @@ platforms darwin
supported_archs noarch
master_sites ${homepage}

checksums rmd160 3d5ca91aac1882f3153b36cee06881f9053d7caa \
sha256 d7aefd002cb63e125ff20bc2960388cf63e202b7e7f971e47129f2214faca90a \
size 252712
checksums rmd160 fd769b9ddab8bca9202cdb7095264beca8f253a3 \
sha256 f1dcb1ec3e35685e46a8512137b8062daa1d0327900177998a405feab608adeb \
size 252772

patchfiles patch-remove_python2.diff

depends_lib port:python37
set python_branch 3.7
set python_version [string map {. ""} ${python_branch}]

depends_lib port:python${python_version}

post-patch {
reinplace "s|/usr/bin/env python|${prefix}/bin/python3.7|" ${worksrcpath}/flawfinder
reinplace "s|/usr/bin/env python|${prefix}/bin/python${python_branch}|" ${worksrcpath}/flawfinder
}

use_configure no
Expand All @@ -43,6 +46,7 @@ destroot {
${destroot}${prefix}/share/man/man1
}

depends_test-append port:py${python_version}-setuptools
test.run yes
test.target check
test.env-append PYTHON3=${prefix}/bin/python3.7
test.env-append PYTHON3=${prefix}/bin/python${python_branch}

0 comments on commit 5b97320

Please sign in to comment.