homebrew-core/Formula/git-extras.rb
Jack Nagel 96679031ca git-extras 1.4.0
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-09 21:13:56 -06:00

18 lines
542 B
Ruby

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