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-07 06:53:23 +00:00
|
|
|
url "https://github.com/BurntSushi/ripgrep/archive/0.2.8.tar.gz"
|
|
|
|
sha256 "0a2a41439572feed787b4e1e3d07d03b8ee6a7dd2dc0eda969eb7d67aed91e52"
|
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-04 13:32:21 +00:00
|
|
|
sha256 "2e81abf5a9b425f9bac0be397cf8f661f6e5185b5118c7ddadea229c8ed1e179" => :sierra
|
|
|
|
sha256 "21ef587ff3f4b78c3a40c5debb4f473a0795626cf1d1a9fbb942dd4b88bc7acc" => :el_capitan
|
|
|
|
sha256 "f119ee70f91ed8edfa4ebf22fcd819083905a89114050f1f0ba8840c07e399a4" => :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
|