2013-06-06 23:25:31 +00:00
|
|
|
class Ack < Formula
|
2014-09-15 08:03:09 +00:00
|
|
|
homepage "http://beyondgrep.com/"
|
|
|
|
url "http://beyondgrep.com/ack-2.14-single-file"
|
|
|
|
sha1 "49c43603420521e18659ce3c50778a4894dd4a5f"
|
|
|
|
version "2.14"
|
2010-09-01 17:45:26 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-18 21:45:00 +00:00
|
|
|
bin.install "ack-#{version}-single-file" => "ack"
|
2013-04-20 11:44:05 +00:00
|
|
|
system "pod2man", "#{bin}/ack", "ack.1"
|
|
|
|
man1.install "ack.1"
|
2012-04-29 06:30:26 +00:00
|
|
|
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
|