2016-09-26 22:42:47 +00:00
|
|
|
class Ripgrep < Formula
|
|
|
|
desc "Search tool like grep and The Silver Searcher."
|
|
|
|
homepage "https://github.com/BurntSushi/ripgrep"
|
2016-11-13 12:45:29 +00:00
|
|
|
url "https://github.com/BurntSushi/ripgrep/archive/0.2.9.tar.gz"
|
|
|
|
sha256 "508d6cab8e08bc8728f8674bae0266bc236b16933edb3559ac746b3b9af9d638"
|
2016-09-26 22:42:47 +00:00
|
|
|
head "https://github.com/BurntSushi/ripgrep.git"
|
|
|
|
|
2016-10-01 05:40:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-11-13 13:13:36 +00:00
|
|
|
sha256 "779b408cdc6e70cce30142112bee477817968bcdeeb53de9fdddc1b1f56b24e3" => :sierra
|
|
|
|
sha256 "6016fda414c7a9dd775acc7acd5ab76b77fee9573a322c59f0bcb0ff9d95bcd2" => :el_capitan
|
|
|
|
sha256 "7446e36734461860209bc701c9fe8549a3779beccb9d811e017baddf47178d90" => :yosemite
|
2016-10-01 05:40:03 +00:00
|
|
|
end
|
|
|
|
|
2016-09-26 22:42:47 +00:00
|
|
|
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
|