2010-08-12 23:28:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitExtras < Formula
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/visionmedia/git-extras'
|
2012-02-10 03:13:12 +00:00
|
|
|
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'
|
2010-08-12 23:28:42 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-10 03:13:12 +00:00
|
|
|
# fixed in HEAD to respect PREFIX
|
2012-01-24 21:26:42 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.gsub! '/etc/bash_completion.d', "#{prefix}/etc/bash_completion.d"
|
2012-02-10 03:13:12 +00:00
|
|
|
end unless ARGV.build_head?
|
|
|
|
|
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-08-12 23:28:42 +00:00
|
|
|
end
|
|
|
|
end
|