aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/git-extras.rb')
-rw-r--r--Library/Formula/git-extras.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/git-extras.rb b/Library/Formula/git-extras.rb
index 0cb521397..715ffb045 100644
--- a/Library/Formula/git-extras.rb
+++ b/Library/Formula/git-extras.rb
@@ -1,5 +1,3 @@
-require "formula"
-
class GitExtras < Formula
homepage "https://github.com/tj/git-extras"
url "https://github.com/tj/git-extras/archive/2.2.0.tar.gz"
@@ -15,7 +13,13 @@ class GitExtras < Formula
end
def install
- inreplace "Makefile", %r|\$\(DESTDIR\)(?=/etc/bash_completion\.d)|, "$(DESTDIR)$(PREFIX)"
+ inreplace "Makefile", %r{\$\(DESTDIR\)(?=/etc/bash_completion\.d)}, "$(DESTDIR)$(PREFIX)"
system "make", "PREFIX=#{prefix}", "install"
end
+
+ test do
+ cd HOMEBREW_PREFIX do
+ system "#{bin}/git-root"
+ end
+ end
end