summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-10-03 17:14:09 -0400
committerGitHub <noreply@github.com>2016-10-03 17:14:09 -0400
commitca0d8998a21d21f3e10271e86ba90e9bb684f138 (patch)
tree686aad450359308e8671649c371bc9bebc898e4f
parentfdf24317ac4c34fc0a21efa0a775bc7d3663d498 (diff)
parent67bb4f040f587e0b74e0957f1e6e9480828f1336 (diff)
Merge pull request #139 from moshen/make-a-tap
Make the repo a Homebrew Tap
l---------HomebrewFormula1
-rw-r--r--README.md7
-rw-r--r--pkg/brew/ripgrep.rb11
3 files changed, 6 insertions, 13 deletions
diff --git a/HomebrewFormula b/HomebrewFormula
new file mode 120000
index 00000000..1ffaf042
--- /dev/null
+++ b/HomebrewFormula
@@ -0,0 +1 @@
+pkg/brew \ No newline at end of file
diff --git a/README.md b/README.md
index 1848ed20..7a0462b0 100644
--- a/README.md
+++ b/README.md
@@ -97,12 +97,11 @@ but you'll need to have the
[Microsoft VC++ 2015 redistributable](https://www.microsoft.com/en-us/download/details.aspx?id=48145)
installed.
-If you're a **Homebrew** user, then you can install it with a custom formula
-(N.B. `ripgrep` isn't actually in Homebrew yet. This just installs the binary
-directly):
+If you're a **Homebrew** user, then you can install it with a custom tap:
```
-$ brew install https://raw.githubusercontent.com/BurntSushi/ripgrep/master/pkg/brew/ripgrep.rb
+$ brew tap burntsushi/ripgrep https://github.com/BurntSushi/ripgrep.git
+$ brew install burntsushi/ripgrep/ripgrep
```
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.rb
index ec3328d5..70befd6b 100644
--- a/pkg/brew/ripgrep.rb
+++ b/pkg/brew/ripgrep.rb
@@ -1,16 +1,9 @@
-require 'formula'
class Ripgrep < Formula
version '0.2.1'
desc "Search tool like grep and The Silver Searcher."
homepage "https://github.com/BurntSushi/ripgrep"
-
- if Hardware::CPU.is_64_bit?
- url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
- sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
- else
- url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-i686-apple-darwin.tar.gz"
- sha256 "3880ffbc169ea7a884d6c803f3b227a9a3acafff160cdaf830f930e065ae2b38"
- end
+ url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
+ sha256 "f8b208239b988708da2e58f848a75bf70ad144e201b3ed99cd323cc5a699625f"
def install
bin.install "rg"