mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 04:29:50 -05:00
Fix ack formula
This commit is contained in:
1 parent
905f31e3bd
commit
a85147df98
2 files changed
+3
-10
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user