2016-10-03 16:39:34 -05:00
|
|
|
class RipgrepBin < Formula
|
2023-11-27 21:44:06 -05:00
|
|
|
version '14.0.2'
|
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"
|
2023-11-28 16:23:16 -05:00
|
|
|
sha256 "dd06bebd3a9d75981f8e3271b6c69286990f3fc1a374f0e5b0fc2866ec69bc4c"
|
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"
|
2023-11-28 16:23:16 -05:00
|
|
|
sha256 "62cd0efc4d6f1817b9c852859987b4720cd52e0de008418266e8503028dc0c7a"
|
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
|