# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
maintainers {khindenburg @kurthindenburg} openmaintainer
description Examines C/C++ source code for security flaw
Program that examines source code and reports possible \
security weaknesses (``flaws'') sorted by risk level. \
It's very useful for quickly finding and removing at \
least some potential security problems before a program \
is widely released to the public.
homepage https://www.dwheeler.com/flawfinder/
checksums rmd160 fd769b9ddab8bca9202cdb7095264beca8f253a3 \
sha256 f1dcb1ec3e35685e46a8512137b8062daa1d0327900177998a405feab608adeb \
patchfiles patch-remove_python2.diff
set python_version [string map {. ""} ${python_branch}]
depends_lib port:python${python_version}
reinplace "s|/usr/bin/env python|${prefix}/bin/python${python_branch}|" ${worksrcpath}/flawfinder
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
xinstall -m 644 ${worksrcpath}/${name}.1 \
${destroot}${prefix}/share/man/man1
depends_test-append port:py${python_version}-setuptools
test.env-append PYTHON3=${prefix}/bin/python${python_branch}