1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/pkg/brew/ripgrep-bin.rb

25 lines
851 B
Ruby
Raw Normal View History

class RipgrepBin < Formula
2020-03-16 04:10:08 +02:00
version '12.0.0'
2018-02-12 03:19:25 +02:00
desc "Recursively search directories for a regex pattern."
2016-09-21 23:28:19 +02: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"
2020-03-16 04:10:08 +02:00
sha256 "ebbc518ac019fc78b6429ec2e64b823c59b15a6f942436f43b9afc23c9aad9ea"
elsif OS.linux?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
2020-03-16 04:10:08 +02:00
sha256 "ab3c8b4b030102d8fcdde62d3467ea5219e65aa3b42d268e85e9d1c14624149a"
end
2016-09-21 23:28:19 +02:00
conflicts_with "ripgrep"
2016-09-21 23:28:19 +02:00
def install
bin.install "rg"
2018-02-12 03:19:25 +02:00
man1.install "doc/rg.1"
2017-03-13 04:55:59 +02:00
2018-02-12 03:19:25 +02:00
bash_completion.install "complete/rg.bash"
2017-01-19 14:49:39 +02:00
fish_completion.install "complete/rg.fish"
zsh_completion.install "complete/_rg"
2016-09-21 23:28:19 +02:00
end
end