2016-10-03 16:39:34 -05:00
|
|
|
class RipgrepBin < Formula
|
2019-04-16 13:39:56 -04:00
|
|
|
version '11.0.1'
|
2018-02-11 20:19:25 -05:00
|
|
|
desc "Recursively search directories for a regex pattern."
|
2016-09-21 17:28:19 -04: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"
|
2019-04-16 13:39:56 -04:00
|
|
|
sha256 "92446c6b28b6c726f91ad66a03bcd533fc6e1a28ef4b44c27bfe2d49a0f88531"
|
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"
|
2019-04-16 13:39:56 -04:00
|
|
|
sha256 "ce74cabac9b39b1ad55837ec01e2c670fa7e965772ac2647b209e31ead19008c"
|
2017-10-25 13:35:24 +02:00
|
|
|
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"
|
2018-02-11 20:19:25 -05:00
|
|
|
man1.install "doc/rg.1"
|
2017-03-12 22:55:59 -04:00
|
|
|
|
2018-02-11 20:19:25 -05:00
|
|
|
bash_completion.install "complete/rg.bash"
|
2017-01-19 13:49:39 +01:00
|
|
|
fish_completion.install "complete/rg.fish"
|
|
|
|
zsh_completion.install "complete/_rg"
|
2016-09-21 17:28:19 -04:00
|
|
|
end
|
|
|
|
end
|