aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
diff options
context:
space:
mode:
authorDave Lee2012-07-16 16:24:56 -0600
committerMisty De Meo2012-07-18 23:21:46 -0500
commit95c62b18e768671c8733188f22c665769fa34400 (patch)
tree6d5986aaf5c5500313ca82be711d35d2ddda4da0 /Library/Formula/git-extras.rb
parent5f7893e8ad1ebeab65bb77310c4943ce615f9329 (diff)
downloadhomebrew-95c62b18e768671c8733188f22c665769fa34400.tar.bz2
git-extras 1.7.0 (includes bash completions)
Closes #13436. Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library/Formula/git-extras.rb')
-rw-r--r--Library/Formula/git-extras.rb14
1 files changed, 12 insertions, 2 deletions
diff --git a/Library/Formula/git-extras.rb b/Library/Formula/git-extras.rb
index b141314a1..9aba74bd1 100644
--- a/Library/Formula/git-extras.rb
+++ b/Library/Formula/git-extras.rb
@@ -2,12 +2,22 @@ require 'formula'
class GitExtras < Formula
homepage 'https://github.com/visionmedia/git-extras'
- url 'https://github.com/visionmedia/git-extras/tarball/1.5.0'
- sha1 '60e0ad00b046d76b3c111d9cc3d02aa4191e450a'
+ url 'https://github.com/visionmedia/git-extras/tarball/1.7.0'
+ sha1 '939a9a736b5ecd3dae98eb16104f4e109bdf2f70'
head 'https://github.com/visionmedia/git-extras.git', :branch => 'master'
+ # Don't take +x off these files
+ skip_clean 'bin'
+
def install
+ inreplace 'Makefile', %r|\$\(DESTDIR\)(?=/etc/bash_completion\.d)|, '$(DESTDIR)$(PREFIX)'
system "make", "PREFIX=#{prefix}", "install"
end
+
+ def caveats; <<-EOS.undent
+ Bash completion has been installed to:
+ #{etc}/bash_completion.d
+ EOS
+ end
end