aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
blob: 862dd9a63f8af5fb2e14d603dc71ebbb47bae07e (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/visionmedia/git-extras"
  url "https://github.com/visionmedia/git-extras/archive/2.0.0.tar.gz"
  sha1 "1cb12caffc76d3285d60a3b2b169e3ce6040998c"

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

  bottle do
    cellar :any
    sha1 "c8c8a635d8555679422c6d7a06e32e3c08b4e32c" => :mavericks
    sha1 "cb24ad03c24209431b4242f5cfc863046fcfc163" => :mountain_lion
    sha1 "f1bdf0558b495a466eba8be250c6fda94a94c1fc" => :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