homebrew-core/Formula/ack.rb
Joep Loijens a7339d2991 ack 2.14
Closes Homebrew/homebrew#32310.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-09-15 12:15:28 +01:00

19 lines
501 B
Ruby

require "formula"
class Ack < Formula
homepage "http://beyondgrep.com/"
url "http://beyondgrep.com/ack-2.14-single-file"
sha1 "49c43603420521e18659ce3c50778a4894dd4a5f"
version "2.14"
def install
bin.install "ack-#{version}-single-file" => "ack"
system "pod2man", "#{bin}/ack", "ack.1"
man1.install "ack.1"
end
test do
assert_equal "foo bar\n", pipe_output("#{bin}/ack --noenv --nocolor bar -",
"foo\nfoo bar\nbaz")
end
end