mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 01:30:21 -07:00
24 lines
804 B
Ruby
24 lines
804 B
Ruby
class RipgrepBin < Formula
|
|
version '14.0.2'
|
|
desc "Recursively search directories for a regex pattern."
|
|
homepage "https://github.com/BurntSushi/ripgrep"
|
|
|
|
if OS.mac?
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
|
|
sha256 "dd06bebd3a9d75981f8e3271b6c69286990f3fc1a374f0e5b0fc2866ec69bc4c"
|
|
elsif OS.linux?
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "62cd0efc4d6f1817b9c852859987b4720cd52e0de008418266e8503028dc0c7a"
|
|
end
|
|
|
|
conflicts_with "ripgrep"
|
|
|
|
def install
|
|
bin.install "rg"
|
|
man1.install "doc/rg.1"
|
|
|
|
bash_completion.install "complete/rg.bash"
|
|
zsh_completion.install "complete/_rg"
|
|
end
|
|
end
|