aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
blob: f27034c696f58e314e9d5a8ec1de0568eac10527 (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 "46a9571d689cd5af02f176134dc2423c972c86a0" => :mavericks
    sha1 "8d9f5cf5005386e63c940da86034956400a87c58" => :mountain_lion
    sha1 "8e00abe2ca5e62271a38e0063b3e01de16a420a7" => :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