1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-25 14:22:54 +02:00
Files
ripgrep/pkg/brew/ripgrep-bin.rb

24 lines
804 B
Ruby
Raw Normal View History

class RipgrepBin < Formula
2024-01-06 14:41:09 -05:00
version '14.1.0'
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"
if OS.mac?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
2024-01-06 14:41:09 -05:00
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
elsif OS.linux?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
2024-01-06 14:41:09 -05:00
sha256 "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
end
2016-09-21 17:28:19 -04: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