PageRenderTime 57ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/pkg/brew/ripgrep-bin.rb

https://github.com/BurntSushi/ripgrep
Ruby | 23 lines | 19 code | 4 blank | 0 comment | 2 complexity | 67564382c7ed6c43718ab46f8e99f0f5 MD5 | raw file
Possible License(s): MIT, Unlicense
  1. class RipgrepBin < Formula
  2. version '12.1.0'
  3. desc "Recursively search directories for a regex pattern."
  4. homepage "https://github.com/BurntSushi/ripgrep"
  5. if OS.mac?
  6. url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
  7. sha256 "974351ca7d00083ba2fad52e2f2539c8ff114119c139420f592507962ab43b75"
  8. elsif OS.linux?
  9. url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
  10. sha256 "c6bba6d643b1a1f18994683e26d4d2b998b41a7a7360e63cb8ec9db8ffbf793c"
  11. end
  12. conflicts_with "ripgrep"
  13. def install
  14. bin.install "rg"
  15. man1.install "doc/rg.1"
  16. bash_completion.install "complete/rg.bash"
  17. zsh_completion.install "complete/_rg"
  18. end
  19. end