homebrew-core/Formula/cloc.rb

24 lines
574 B
Ruby
Raw Normal View History

2013-06-06 23:37:18 +00:00
class Cloc < Formula
desc "Statistics utility to count lines of code"
homepage "https://github.com/AlDanial/cloc/"
url "https://github.com/AlDanial/cloc/releases/download/1.64/cloc-1.64.pl"
sha256 "79edea7ea1f442b1632001e23418193ae4571810e60de8bd25e491036d60eb3d"
2015-11-11 10:42:45 +00:00
bottle :unneeded
2015-07-05 19:21:33 +00:00
def install
2013-03-30 19:19:30 +00:00
bin.install "cloc-#{version}.pl" => "cloc"
end
test do
(testpath/"test.c").write <<-EOS.undent
#include <stdio.h>
int main(void) {
return 0;
}
EOS
assert_match "1,C,0,0,4", shell_output("#{bin}/cloc --csv .")
end
end