homebrew-core/Formula/ack.rb

20 lines
501 B
Ruby
Raw Normal View History

require 'formula'
2013-06-06 23:25:31 +00:00
class Ack < Formula
homepage 'http://beyondgrep.com/'
url 'http://beyondgrep.com/ack-2.12-single-file'
sha1 '667b5f2dd83143848a5bfa47f7ba848cbe556e93'
version '2.12'
def install
2014-03-18 21:45:00 +00:00
bin.install "ack-#{version}-single-file" => "ack"
system "pod2man", "#{bin}/ack", "ack.1"
man1.install "ack.1"
end
2013-01-27 22:36:42 +00:00
test do
2014-05-04 19:12:41 +00:00
assert_equal "foo bar\n", pipe_output("#{bin}/ack --noenv --nocolor bar -",
"foo\nfoo bar\nbaz")
2013-01-27 22:36:42 +00:00
end
2009-09-22 19:10:17 +00:00
end