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-07-16 22:24:56 +00:00
|
|
|
url 'https://github.com/visionmedia/git-extras/tarball/1.7.0'
|
|
|
|
sha1 '939a9a736b5ecd3dae98eb16104f4e109bdf2f70'
|
2012-02-10 03:13:12 +00:00
|
|
|
|
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
|
|
|
|
2012-07-16 22:24:56 +00:00
|
|
|
# Don't take +x off these files
|
|
|
|
skip_clean 'bin'
|
|
|
|
|
2010-08-12 23:28:42 +00:00
|
|
|
def install
|
2012-07-16 22:24:56 +00:00
|
|
|
inreplace 'Makefile', %r|\$\(DESTDIR\)(?=/etc/bash_completion\.d)|, '$(DESTDIR)$(PREFIX)'
|
2012-02-10 03:13:12 +00:00
|
|
|
system "make", "PREFIX=#{prefix}", "install"
|
2010-08-12 23:28:42 +00:00
|
|
|
end
|
|
|
|
end
|