aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ack.rb
blob: ba02d21139dbc69601d4c9fa4c6c0ea8c1518744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Ack < Formula
  homepage 'http://beyondgrep.com/'
  url 'https://github.com/petdance/ack2/archive/2.04.tar.gz'
  sha1 'b9241ea000b089609d7e62f241c1ef7ad0d70cc6'

  def install
    bin.install "garage/ack-#{version}" => "ack"
    system "pod2man", "#{bin}/ack", "ack.1"
    man1.install "ack.1"
  end

  test do
    system "#{bin}/ack", 'brew', '/usr/share/dict/words'
  end
end