2010-02-05 10:18:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GitMultipush < Formula
|
2010-02-05 10:18:44 +00:00
|
|
|
homepage 'http://code.google.com/p/git-multipush/'
|
2012-02-29 00:34:06 +00:00
|
|
|
url 'http://git-multipush.googlecode.com/files/git-multipush-2.3.tar.bz2'
|
2011-09-27 23:37:36 +00:00
|
|
|
sha1 'a53f171af5e794afe9b1de6ccd9bd0661db6fd91'
|
2012-02-29 00:34:06 +00:00
|
|
|
|
2012-04-24 01:21:12 +00:00
|
|
|
head 'https://github.com/gavinbeatty/git-multipush.git', :revision => 'HEAD'
|
2010-02-05 10:18:44 +00:00
|
|
|
|
2012-08-28 04:14:43 +00:00
|
|
|
depends_on 'asciidoc' => :build if build.head?
|
2010-02-05 10:18:44 +00:00
|
|
|
|
|
|
|
def install
|
2012-08-28 04:14:43 +00:00
|
|
|
if build.head?
|
2012-04-24 01:21:12 +00:00
|
|
|
ENV['GIT_DIR'] = cached_download/'.git'
|
2011-09-27 23:37:36 +00:00
|
|
|
inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
|
|
|
|
system "make"
|
|
|
|
end
|
2010-02-05 10:18:44 +00:00
|
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
end
|
|
|
|
end
|