homebrew-core/Formula/cloc.rb

25 lines
580 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/archive/1.64.tar.gz"
sha256 "4ebac0ee3124df0c5394410f6803ed2b4f82de9035f62a0b89d8ce54e0726709"
head "https://github.com/AlDanial/cloc.git"
2015-11-11 10:42:45 +00:00
bottle :unneeded
2015-07-05 19:21:33 +00:00
def install
bin.install "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