1b7d37c225
Closes Homebrew/homebrew#36931. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
25 lines
717 B
Ruby
25 lines
717 B
Ruby
class GitExtras < Formula
|
|
homepage "https://github.com/tj/git-extras"
|
|
url "https://github.com/tj/git-extras/archive/2.2.0.tar.gz"
|
|
sha1 "cb3df2bc8953fdae7b73c3d309e79ee5316bb90d"
|
|
|
|
head "https://github.com/tj/git-extras.git"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "43d178ce9c98a28a6ce7cc337119bb500c0fddec" => :yosemite
|
|
sha1 "85b967c0c3b2b7eae0af37d18b9b90bad08f79cc" => :mavericks
|
|
sha1 "54df32fa640c8cd05616c8ebb5cbf1ec8cc95565" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
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
|