diff options
| author | Adam Vandenberg | 2010-05-13 18:15:52 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-05-13 18:15:52 -0700 |
| commit | b2b309c9800c929770df39e236dbe4e52e48de6d (patch) | |
| tree | 01aaec7454e56c4a3a46eb1b0232c544ad1609a5 /Library/Formula | |
| parent | 9269ef95b3d0eae44fbd05f0c62ff5773c9e5ba7 (diff) | |
| download | homebrew-b2b309c9800c929770df39e236dbe4e52e48de6d.tar.bz2 | |
Updated sloccount
* Replaced most of the patch with commands in def install
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sloccount.rb | 48 |
1 files changed, 6 insertions, 42 deletions
diff --git a/Library/Formula/sloccount.rb b/Library/Formula/sloccount.rb index 4f7a281e0..c5b8d4347 100644 --- a/Library/Formula/sloccount.rb +++ b/Library/Formula/sloccount.rb @@ -1,36 +1,23 @@ require 'formula' class Sloccount <Formula - @url='http://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz' - @homepage='http://www.dwheeler.com/sloccount/' - @md5='09abd6e2a016ebaf7552068a1dba1249' + homepage 'http://www.dwheeler.com/sloccount/' + url 'http://www.dwheeler.com/sloccount/sloccount-2.26.tar.gz' + md5 '09abd6e2a016ebaf7552068a1dba1249' def patches - # We create the install dir or install falls over - # We delete makefile.orig or patch falls over DATA end def install - FileUtils.rm("makefile.orig") + 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/makefile b/makefile -index 0c029f1..8e303e2 100644 ---- a/makefile -+++ b/makefile -@@ -164,6 +164,7 @@ c_lines: C_LINES.C - - - install_programs: all -+ $(INSTALL_A_DIR) $(INSTALL_DIR) - $(INSTALL) $(EXECUTABLES) $(INSTALL_DIR) - - uninstall_programs: - diff --git a/break_filelist b/break_filelist index ad2de47..ff854e0 100755 --- a/break_filelist @@ -41,26 +28,3 @@ index ad2de47..ff854e0 100755 "jsp" => "jsp", # Java server pages + "erl" => "erlang", ); - - -diff --git a/erlang_count b/erlang_count -new file mode 100755 -index 0000000..50af97c ---- /dev/null -+++ b/erlang_count -@@ -0,0 +1,3 @@ -+#!/bin/sh -+ -+generic_count '%' $@ -diff --git a/makefile b/makefile -index 0c029f1..7b446d5 100644 ---- a/makefile -+++ b/makefile -@@ -95,6 +95,7 @@ EXECUTABLES= \ - count_extensions \ - count_unknown_ext \ - csh_count \ -+ erlang_count \ - exp_count \ - fortran_count \ - f90_count \ |
