aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ack.rb
blob: 38a36545064d3dda267dd963c268991550bdf029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
require 'formula'

class Ack < Formula
  url "https://github.com/petdance/ack/tarball/1.96"
  md5 '1cce67a811c52f9d51fb1195c97795f1'
  homepage 'http://betterthangrep.com/'

  def install
    system "pod2man ack ack.1"
    man1.install 'ack.1'
    bin.install 'ack'
    (prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
    (share+'zsh/site-functions').install 'etc/ack.zsh_completion' => '_ack'
  end

  def caveats; <<-EOS.undent
    Bash completion has been installed to:
      #{etc}/bash_completion.d

    zsh completion has been installed to:
      #{HOMEBREW_PREFIX}/share/zsh/site-functions
    EOS
  end
end