flawfinder 1.31
Closes Homebrew/homebrew#38949. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
202bba5a2d
commit
cfeb75e439
1 changed files with 19 additions and 10 deletions
|
@ -1,15 +1,24 @@
|
||||||
require 'formula'
|
|
||||||
|
|
||||||
class Flawfinder < Formula
|
class Flawfinder < Formula
|
||||||
homepage 'http://www.dwheeler.com/flawfinder/'
|
homepage "http://www.dwheeler.com/flawfinder/"
|
||||||
url 'http://www.dwheeler.com/flawfinder/flawfinder-1.27.tar.gz'
|
url "http://www.dwheeler.com/flawfinder/flawfinder-1.31.tar.gz"
|
||||||
sha1 '0af702c1e0cbd0385a78be6ef1f2f7752ba6193f'
|
mirror "https://downloads.sourceforge.net/project/flawfinder/flawfinder-1.31.tar.gz"
|
||||||
head 'git://git.code.sf.net/p/flawfinder/code'
|
sha256 "bca7256fdf71d778eb59c9d61fc22b95792b997cc632b222baf79cfc04887c30"
|
||||||
|
|
||||||
|
head "git://git.code.sf.net/p/flawfinder/code"
|
||||||
|
|
||||||
|
resource "flaws" do
|
||||||
|
url "http://www.dwheeler.com/flawfinder/test.c"
|
||||||
|
sha256 "4a9687a091b87eed864d3e35a864146a85a3467eb2ae0800a72e330496f0aec3"
|
||||||
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
system "make", "INSTALL_DIR=#{prefix}",
|
system "make", "prefix=#{prefix}", "install"
|
||||||
"INSTALL_DIR_BIN=#{bin}",
|
end
|
||||||
"INSTALL_DIR_MAN=#{man1}",
|
|
||||||
"install"
|
test do
|
||||||
|
resource("flaws").stage do
|
||||||
|
assert_match "Hits = 36",
|
||||||
|
shell_output("#{bin}/flawfinder test.c")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue