homebrew-core/Formula/git-extras.rb

19 lines
542 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class GitExtras < Formula
homepage 'https://github.com/visionmedia/git-extras'
url 'https://github.com/visionmedia/git-extras/tarball/1.4.0'
sha1 '9471ae1df77e561980983e2ae7e7d1f6b74e95bc'
2011-05-27 05:02:55 +00:00
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