aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-extras.rb
blob: b43c726d1bea98a5ac661d02b1d73d3ba52df304 (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.8.0.tar.gz'
  sha1 '5a52d3e247a5134c8e2bf89b339a204a7f4ad8e0'

  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