homebrew-core/Formula/ripgrep.rb
Colin Kennedy e94ef9aef3 ripgrep 0.2.1 (new formula)
Closes #5268.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-10-01 18:47:28 +01:00

21 lines
602 B
Ruby

class Ripgrep < Formula
desc "Search tool like grep and The Silver Searcher."
homepage "https://github.com/BurntSushi/ripgrep"
url "https://github.com/BurntSushi/ripgrep/archive/0.2.1.tar.gz"
sha256 "372ccd0a93c98e9f3cc51644a9c52d1d8437ecb8b0e2908b33df9a46ca7b9ee2"
head "https://github.com/BurntSushi/ripgrep.git"
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/rg"
man1.install "doc/rg.1"
end
test do
(testpath/"Hello.txt").write("Hello World!")
system "#{bin}/rg", "Hello World!", testpath
end
end