2016-10-03 16:39:34 -05:00
|
|
|
class RipgrepBin < Formula
|
2024-09-08 22:32:02 -04:00
|
|
|
version '14.1.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"
|
2024-09-08 22:32:02 -04:00
|
|
|
sha256 "fc87e78f7cb3fea12d69072e7ef3b21509754717b746368fd40d88963630e2b3"
|
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"
|
2024-09-08 22:32:02 -04:00
|
|
|
sha256 "4cf9f2741e6c465ffdb7c26f38056a59e2a2544b51f7cc128ef28337eeae4d8e"
|
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
|
|
|
zsh_completion.install "complete/_rg"
|
2016-09-21 17:28:19 -04:00
|
|
|
end
|
|
|
|
end
|