aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
blob: 2d892435c11e97f8dab91354e79e50969bbe9005 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class GitExtras < Formula
  homepage 'https://github.com/visionmedia/git-extras'
  url 'https://github.com/visionmedia/git-extras/archive/1.9.1.tar.gz'
  sha1 '145124710f2f06f17984e335c8b840c90c43eb44'

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

  # 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