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-04 12:54:59 +00:00
|
|
|
url "https://github.com/BurntSushi/ripgrep/archive/0.2.6.tar.gz"
|
|
|
|
sha256 "6170e5866b49759401e912bd59ffe5a764ee501a6056396f7a3c9f131a75af65"
|
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-10-15 00:36:58 +00:00
|
|
|
sha256 "ff0f826ab6e081110a6877dd2afc76381ae282f5984a81bb778858018db4831a" => :sierra
|
|
|
|
sha256 "584ef400386f4cc6b768fc2efe2a3607865744e5d8751c1e2f8e9bb81d7fd806" => :el_capitan
|
|
|
|
sha256 "d6466efbe4564f58f4615a544641a53044fa2d6b6360cb1282167fdb19f62c83" => :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
|