aboutsummaryrefslogtreecommitdiffstats
path: root/Formula/ack.rb
blob: b27d827ac23c4163b0214128157f185051f92aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
require 'brewkit'
require 'fileutils'

homepage='http://betterthangrep.com/'

class AckFormula < UncompressedScriptFormula
  def initialize
    super('http://ack.googlecode.com/svn/tags/1.88/ack')
    @version='1.88'
    @md5='8009a13ab0fc66047bea0ea2ad89419c'
  end
end

ack=AckFormula.new
ack.brew do |prefix|
  bin=prefix+'bin'
  bin.mkpath
  FileUtils.cp ack.name, bin
  (bin+ack.name).chmod 0544
  nil
end