From 44003ac52fa24843ea37e69800da083ab010724a Mon Sep 17 00:00:00 2001 From: Edward Patel Date: Sun, 15 Sep 2013 16:14:58 +0200 Subject: pmccabe 2.6 McCabe-style function complexity and line counting for C and C++ Closes #22557. Signed-off-by: Adam Vandenberg --- Library/Formula/pmccabe.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Library/Formula/pmccabe.rb (limited to 'Library/Formula') diff --git a/Library/Formula/pmccabe.rb b/Library/Formula/pmccabe.rb new file mode 100644 index 000000000..5ef025a35 --- /dev/null +++ b/Library/Formula/pmccabe.rb @@ -0,0 +1,16 @@ +require 'formula' + +class Pmccabe < Formula + homepage 'http://packages.debian.org/stable/pmccabe' + url 'http://ftp.de.debian.org/debian/pool/main/p/pmccabe/pmccabe_2.6.tar.gz' + sha1 '6e1378b28faf822339780829f3cb9e2d897c5c4d' + + def install + ENV.append_to_cflags '-D__unix' + + system "make" + + bin.install 'pmccabe', 'codechanges', 'decomment', 'vifn' + man1.install Dir['*.1'] + end +end -- cgit v1.2.3