7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
32 lines
868 B
Ruby
32 lines
868 B
Ruby
require 'formula'
|
|
|
|
class Sloccount <Formula
|
|
homepage 'http://www.dwheeler.com/sloccount/'
|
|
url 'http://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz'
|
|
md5 '09abd6e2a016ebaf7552068a1dba1249'
|
|
|
|
depends_on 'md5sha1sum'
|
|
|
|
def patches
|
|
DATA
|
|
end
|
|
|
|
def install
|
|
rm "makefile.orig" # Delete makefile.orig or patch falls over
|
|
bin.mkpath # Create the install dir or install falls over
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
(bin+'erlang_count').write "#!/bin/sh\ngeneric_count '%' $@"
|
|
end
|
|
end
|
|
|
|
__END__
|
|
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",
|
|
);
|