homebrew-core/Formula/ack.rb

18 lines
482 B
Ruby
Raw Normal View History

2013-06-06 23:25:31 +00:00
class Ack < Formula
homepage "http://beyondgrep.com/"
url "http://beyondgrep.com/ack-2.14-single-file"
sha1 "49c43603420521e18659ce3c50778a4894dd4a5f"
version "2.14"
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