diff options
| author | Edward Patel | 2013-09-15 16:14:58 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-15 09:38:28 -0700 |
| commit | 44003ac52fa24843ea37e69800da083ab010724a (patch) | |
| tree | 004852986cdfa0582730021ed81da9f401947ff7 /Library/Formula | |
| parent | be257f4b6dc0985fe134342fed8ff5f6646c571a (diff) | |
| download | homebrew-44003ac52fa24843ea37e69800da083ab010724a.tar.bz2 | |
pmccabe 2.6
McCabe-style function complexity and line counting for C and C++
Closes #22557.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pmccabe.rb | 16 |
1 files changed, 16 insertions, 0 deletions
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 |
