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

25 lines
850 B
Ruby
Raw Normal View History

class RipgrepBin < Formula
2018-02-11 20:19:25 -05:00
version '0.8.0'
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"
2018-02-11 20:39:12 -05:00
sha256 "fb35e92fd57d28a1e68daf964764c3da7f027ad30cca7a07a1848224776f36b2"
elsif OS.linux?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
2018-02-11 20:39:12 -05:00
sha256 "621f2f16f65203aa37e7c10ecfb22384c4c01e70ebbd30a13c0d6944ffc6e59e"
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
fish_completion.install "complete/rg.fish"
zsh_completion.install "complete/_rg"
2016-09-21 17:28:19 -04:00
end
end