1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-03 05:10:12 +02:00
ripgrep/pkg/brew/ripgrep-bin.rb

25 lines
850 B
Ruby
Raw Normal View History

class RipgrepBin < Formula
2018-08-03 23:04:36 +02:00
version '0.9.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"
2018-08-03 23:04:36 +02:00
sha256 "36003ea8b62ad6274dc14140039f448cdf5026827d53cf24dad2d84005557a8c"
elsif OS.linux?
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
2018-08-03 23:04:36 +02:00
sha256 "2eb4443e58f95051ff76ea036ed1faf940d5a04af4e7ff5a7dbd74576b907e99"
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