2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 16:27:09 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Sloccount < Formula
|
2010-05-14 01:15:52 +00:00
|
|
|
homepage 'http://www.dwheeler.com/sloccount/'
|
|
|
|
url 'http://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '505031c6adfb93e454aaf8b0ee7de04122079d13'
|
2009-09-30 16:27:09 +00:00
|
|
|
|
2010-04-07 05:58:35 +00:00
|
|
|
depends_on 'md5sha1sum'
|
|
|
|
|
2009-09-30 16:27:09 +00:00
|
|
|
def patches
|
2010-04-07 05:58:35 +00:00
|
|
|
DATA
|
2009-09-30 16:27:09 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2010-05-14 01:15:52 +00:00
|
|
|
rm "makefile.orig" # Delete makefile.orig or patch falls over
|
|
|
|
bin.mkpath # Create the install dir or install falls over
|
2009-09-30 16:27:09 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2010-05-14 01:15:52 +00:00
|
|
|
(bin+'erlang_count').write "#!/bin/sh\ngeneric_count '%' $@"
|
2009-09-30 16:27:09 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
2010-05-07 23:26:03 +00:00
|
|
|
diff --git a/break_filelist b/break_filelist
|
|
|
|
index ad2de47..ff854e0 100755
|
|
|
|
--- a/break_filelist
|
|
|
|
+++ b/break_filelist
|
|
|
|
@@ -205,6 +205,7 @@ $noisy = 0; # Set to 1 if you want noisy reports.
|
|
|
|
"hs" => "haskell", "lhs" => "haskell",
|
|
|
|
# ???: .pco is Oracle Cobol
|
|
|
|
"jsp" => "jsp", # Java server pages
|
|
|
|
+ "erl" => "erlang",
|
|
|
|
);
|