diff options
| author | Max Howell | 2009-05-23 12:31:32 +0100 |
|---|---|---|
| committer | Max Howell | 2009-05-23 18:19:03 +0100 |
| commit | f32d0e6af9b9801b681715e4827912a34a970335 (patch) | |
| tree | 6c6f0d6a472e6a60a6ff4f33c3b0a9afe78b4bc7 /Formula | |
| parent | def522a5cfbd5dbba21f71f64c4641ed488232dc (diff) | |
| download | brew-f32d0e6af9b9801b681715e4827912a34a970335.tar.bz2 | |
UncompressedScriptFormula
Diffstat (limited to 'Formula')
| -rw-r--r-- | Formula/ack.rb | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/Formula/ack.rb b/Formula/ack.rb index c950a0636..b27d827ac 100644 --- a/Formula/ack.rb +++ b/Formula/ack.rb @@ -4,22 +4,19 @@ require 'fileutils' homepage='http://betterthangrep.com/' -class UncompressedFormula < Formula +class AckFormula < UncompressedScriptFormula def initialize - @name='ack' + super('http://ack.googlecode.com/svn/tags/1.88/ack') @version='1.88' - @url='http://ack.googlecode.com/svn/tags/1.88/ack' @md5='8009a13ab0fc66047bea0ea2ad89419c' end - - def uncompress path - path.dirname - end end -UncompressedFormula.new.brew do |prefix| +ack=AckFormula.new +ack.brew do |prefix| bin=prefix+'bin' - FileUtils.mkpath bin - FileUtils.cp 'ack', bin - `chmod u+x #{bin}/ack` + bin.mkpath + FileUtils.cp ack.name, bin + (bin+ack.name).chmod 0544 + nil end
\ No newline at end of file |
