96679031ca
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
18 lines
542 B
Ruby
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
|