dac57bccd5
McCabe-style function complexity and line counting for C and C++ Closes Homebrew/homebrew#22557. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
16 lines
398 B
Ruby
16 lines
398 B
Ruby
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
|