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

class GitExtras < Formula
  homepage 'https://github.com/visionmedia/git-extras'
  url 'https://github.com/visionmedia/git-extras/tarball/1.4.0'
  sha1 '9471ae1df77e561980983e2ae7e7d1f6b74e95bc'

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

  def install
    # fixed in HEAD to respect PREFIX
    inreplace 'Makefile' do |s|
      s.gsub! '/etc/bash_completion.d', "#{prefix}/etc/bash_completion.d"
    end unless ARGV.build_head?

    system "make", "PREFIX=#{prefix}", "install"
  end
end