diff options
| author | Max Howell | 2009-07-23 04:12:25 +0100 |
|---|---|---|
| committer | Max Howell | 2009-07-23 04:12:25 +0100 |
| commit | a85147df984fd6d17ea028c02841bd0fe7d23979 (patch) | |
| tree | 65f0be9a138d65a28e88e45a5cbd64610f338899 | |
| parent | 905f31e3bd0c009fa245796ab254d945488dcf9a (diff) | |
| download | homebrew-a85147df984fd6d17ea028c02841bd0fe7d23979.tar.bz2 | |
Fix ack formula
| -rw-r--r-- | Library/Formula/ack.rb | 3 | ||||
| -rw-r--r-- | Library/Homebrew/brewkit.rb | 10 |
2 files changed, 3 insertions, 10 deletions
diff --git a/Library/Formula/ack.rb b/Library/Formula/ack.rb index dbc8faf08..c55144fc7 100644 --- a/Library/Formula/ack.rb +++ b/Library/Formula/ack.rb @@ -1,10 +1,11 @@ require 'brewkit' class Ack <ScriptFileFormula - def initialize + def initialize name @version='1.88' @url="http://ack.googlecode.com/svn/tags/#{@version}/ack" @md5='8009a13ab0fc66047bea0ea2ad89419c' @homepage='http://betterthangrep.com/' + @name=name end end
\ No newline at end of file diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb index 6b611678b..a32f015d5 100644 --- a/Library/Homebrew/brewkit.rb +++ b/Library/Homebrew/brewkit.rb @@ -244,7 +244,6 @@ public end ensure FileUtils.rm_rf tmp if tmp - FileUtils.rm tgz if tgz and not self.cache? end end end @@ -292,9 +291,6 @@ public end protected - def cache? - true - end def uncompress path path.dirname end @@ -368,12 +364,8 @@ end # see ack.rb for an example usage class ScriptFileFormula <AbstractFormula - def cache? - false - end def install - FileUtils.cp name, bin - (bin+name).chmod 0544 + bin.install name end end |
