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
|
2013-01-26 22:01:15 +00:00
|
|
|
homepage 'http://betterthangrep.com/'
|
2013-03-15 22:19:52 +00:00
|
|
|
url 'https://github.com/petdance/ack/archive/1.96.tar.gz'
|
|
|
|
sha1 '5d53b2b6f285e222a8459730495d6b07c692edd6'
|
2010-09-01 17:45:26 +00:00
|
|
|
|
|
|
|
def install
|
2013-01-27 22:36:42 +00:00
|
|
|
system 'pod2man', 'ack', 'ack.1'
|
2011-10-09 05:13:06 +00:00
|
|
|
man1.install 'ack.1'
|
2010-11-07 19:19:58 +00:00
|
|
|
bin.install 'ack'
|
2013-01-27 22:34:26 +00:00
|
|
|
bash_completion.install 'etc/ack.bash_completion.sh'
|
|
|
|
zsh_completion.install 'etc/ack.zsh_completion' => '_ack'
|
2012-04-29 06:30:26 +00:00
|
|
|
end
|
2013-01-27 22:36:42 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/ack", 'brew', '/usr/share/dict/words'
|
|
|
|
end
|
2009-09-22 19:10:17 +00:00
|
|
|
end
|