2013-06-06 23:37:18 +00:00
|
|
|
class Cloc < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Statistics utility to count lines of code"
|
2015-11-11 10:02:40 +00:00
|
|
|
homepage "https://github.com/AlDanial/cloc/"
|
2016-01-03 15:40:30 +00:00
|
|
|
url "https://github.com/AlDanial/cloc/archive/1.64.tar.gz"
|
|
|
|
sha256 "4ebac0ee3124df0c5394410f6803ed2b4f82de9035f62a0b89d8ce54e0726709"
|
|
|
|
head "https://github.com/AlDanial/cloc.git"
|
2011-03-13 01:10:35 +00:00
|
|
|
|
2015-11-11 10:42:45 +00:00
|
|
|
bottle :unneeded
|
2015-07-05 19:21:33 +00:00
|
|
|
|
2011-03-13 01:10:35 +00:00
|
|
|
def install
|
2016-01-03 15:40:30 +00:00
|
|
|
bin.install "cloc"
|
2011-03-13 01:10:35 +00:00
|
|
|
end
|
2015-02-04 12:54:49 +00:00
|
|
|
|
|
|
|
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
|
2010-01-14 01:48:32 +00:00
|
|
|
end
|