1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-08-04 21:52:54 +02:00
Files
ripgrep/pkg/brew/ripgrep-bin.rb

24 lines
804 B
Ruby
Raw Permalink Normal View History

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"
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"
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"
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