2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2010-09-01 17:45:26 +00:00
|
|
|
class Ack < Formula
|
2011-09-18 19:08:35 +00:00
|
|
|
url "https://github.com/petdance/ack/tarball/1.96"
|
|
|
|
md5 '1cce67a811c52f9d51fb1195c97795f1'
|
2009-09-28 15:22:07 +00:00
|
|
|
homepage 'http://betterthangrep.com/'
|
2010-09-01 17:45:26 +00:00
|
|
|
|
|
|
|
def install
|
2011-10-09 05:13:06 +00:00
|
|
|
system "pod2man ack ack.1"
|
|
|
|
inreplace 'ack.1', '\*(d\-', '\*(d-' # remove a pod2man formatting error
|
|
|
|
man1.install 'ack.1'
|
2010-11-07 19:19:58 +00:00
|
|
|
bin.install 'ack'
|
|
|
|
(prefix+'etc/bash_completion.d').install 'etc/ack.bash_completion.sh'
|
2012-02-11 10:25:01 +00:00
|
|
|
(share+'zsh/functions').install 'etc/ack.zsh_completion' => '_ack'
|
2010-09-01 17:45:26 +00:00
|
|
|
end
|
2009-09-22 19:10:17 +00:00
|
|
|
end
|