2016-10-03 23:39:34 +02:00
|
|
|
class RipgrepBin < Formula
|
2018-09-07 20:43:59 +02:00
|
|
|
version '0.10.0'
|
2018-02-12 03:19:25 +02:00
|
|
|
desc "Recursively search directories for a regex pattern."
|
2016-09-21 23:28:19 +02:00
|
|
|
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"
|
2018-09-07 20:43:59 +02:00
|
|
|
sha256 "32754b4173ac87a7bfffd436d601a49362676eb1841ab33440f2f49c002c8967"
|
2017-10-25 13:35:24 +02:00
|
|
|
elsif OS.linux?
|
|
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
|
2018-09-07 20:43:59 +02:00
|
|
|
sha256 "c76080aa807a339b44139885d77d15ad60ab8cdd2c2fdaf345d0985625bc0f97"
|
2017-10-25 13:35:24 +02:00
|
|
|
end
|
2016-09-21 23:28:19 +02:00
|
|
|
|
2016-10-03 23:39:34 +02:00
|
|
|
conflicts_with "ripgrep"
|
|
|
|
|
2016-09-21 23:28:19 +02:00
|
|
|
def install
|
|
|
|
bin.install "rg"
|
2018-02-12 03:19:25 +02:00
|
|
|
man1.install "doc/rg.1"
|
2017-03-13 04:55:59 +02:00
|
|
|
|
2018-02-12 03:19:25 +02:00
|
|
|
bash_completion.install "complete/rg.bash"
|
2017-01-19 14:49:39 +02:00
|
|
|
fish_completion.install "complete/rg.fish"
|
|
|
|
zsh_completion.install "complete/_rg"
|
2016-09-21 23:28:19 +02:00
|
|
|
end
|
|
|
|
end
|