From 95f552fc069b6cacdcdd7a3c7eff4dacb0965325 Mon Sep 17 00:00:00 2001 From: Colin Kennedy Date: Mon, 3 Oct 2016 16:39:34 -0500 Subject: [PATCH] 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 --- README.md | 2 +- pkg/brew/{ripgrep.rb => ripgrep-bin.rb} | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename pkg/brew/{ripgrep.rb => ripgrep-bin.rb} (87%) diff --git a/README.md b/README.md index 7a0462b..a5b430b 100644 --- a/README.md +++ b/README.md @@ -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 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: diff --git a/pkg/brew/ripgrep.rb b/pkg/brew/ripgrep-bin.rb similarity index 87% rename from pkg/brew/ripgrep.rb rename to pkg/brew/ripgrep-bin.rb index 70befd6..736bcbf 100644 --- a/pkg/brew/ripgrep.rb +++ b/pkg/brew/ripgrep-bin.rb @@ -1,10 +1,12 @@ -class Ripgrep < Formula +class RipgrepBin < Formula version '0.2.1' desc "Search tool like grep and The Silver Searcher." homepage "https://github.com/BurntSushi/ripgrep" url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz" sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f" + conflicts_with "ripgrep" + def install bin.install "rg" man1.install "rg.1"