2016-10-03 16:39:34 -05:00
|
|
|
class RipgrepBin < Formula
|
2017-10-22 11:15:11 -04:00
|
|
|
version '0.7.1'
|
2016-09-21 17:28:19 -04:00
|
|
|
desc "Search tool like grep and The Silver Searcher."
|
|
|
|
homepage "https://github.com/BurntSushi/ripgrep"
|
2017-10-25 13:35:24 +02:00
|
|
|
|
|
|
|
if OS.mac?
|
|
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
|
|
|
|
sha256 "ee670b0fba46323ee9a2d1c5b8bee46fa3e45778f6f105f2e8e9ee29e8bd0d45"
|
|
|
|
elsif OS.linux?
|
|
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
|
|
|
|
sha256 "ac595c2239b9a30e0e0744578afa6b73e32cdd8ae61d4f1c0ee5d6b55adbadcf"
|
|
|
|
end
|
2016-09-21 17:28:19 -04:00
|
|
|
|
2016-10-03 16:39:34 -05:00
|
|
|
conflicts_with "ripgrep"
|
|
|
|
|
2016-09-21 17:28:19 -04:00
|
|
|
def install
|
|
|
|
bin.install "rg"
|
2016-09-22 20:07:43 -04:00
|
|
|
man1.install "rg.1"
|
2017-03-12 22:55:59 -04:00
|
|
|
|
2017-01-19 13:49:39 +01:00
|
|
|
bash_completion.install "complete/rg.bash-completion"
|
|
|
|
fish_completion.install "complete/rg.fish"
|
|
|
|
zsh_completion.install "complete/_rg"
|
2016-09-21 17:28:19 -04:00
|
|
|
end
|
|
|
|
end
|