blob: 715ffb0457bd70162ab659cb87735beef1dfbf36 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 | 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
 |