aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
blob: 11c93198fe96491081bc2c040037ba4771e7afad (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
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"
  sha1 "cb3df2bc8953fdae7b73c3d309e79ee5316bb90d"

  head "https://github.com/tj/git-extras.git", :branch => "master"

  bottle do
    cellar :any
    sha1 "43d178ce9c98a28a6ce7cc337119bb500c0fddec" => :yosemite
    sha1 "85b967c0c3b2b7eae0af37d18b9b90bad08f79cc" => :mavericks
    sha1 "54df32fa640c8cd05616c8ebb5cbf1ec8cc95565" => :mountain_lion
  end

  # 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
end