Fix brew formula name to not conflict with core

Since the homebrew-core formula was accepted, we should differentiate
the prebuilt formula available in this tap
This commit is contained in:
Colin Kennedy 2016-10-03 16:39:34 -05:00
parent 47efea234f
commit 95f552fc06
2 changed files with 4 additions and 2 deletions

View File

@ -101,7 +101,7 @@ If you're a **Homebrew** user, then you can install it with a custom tap:
``` ```
$ brew tap burntsushi/ripgrep https://github.com/BurntSushi/ripgrep.git $ brew tap burntsushi/ripgrep https://github.com/BurntSushi/ripgrep.git
$ brew install burntsushi/ripgrep/ripgrep $ brew install burntsushi/ripgrep/ripgrep-bin
``` ```
If you're an **Arch Linux** user, then you can install `ripgrep` from the official repos: If you're an **Arch Linux** user, then you can install `ripgrep` from the official repos:

View File

@ -1,10 +1,12 @@
class Ripgrep < Formula class RipgrepBin < Formula
version '0.2.1' version '0.2.1'
desc "Search tool like grep and The Silver Searcher." desc "Search tool like grep and The Silver Searcher."
homepage "https://github.com/BurntSushi/ripgrep" homepage "https://github.com/BurntSushi/ripgrep"
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz" url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f" sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
conflicts_with "ripgrep"
def install def install
bin.install "rg" bin.install "rg"
man1.install "rg.1" man1.install "rg.1"