blob: 431e6735aef4caa97b43bc5089e7b6c392fd52e2 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 | require 'formula'
class GitMultipush < Formula
  homepage 'http://code.google.com/p/git-multipush/'
  url 'http://git-multipush.googlecode.com/files/git-multipush-2.3.tar.bz2'
  sha1 'a53f171af5e794afe9b1de6ccd9bd0661db6fd91'
  head 'https://github.com/gavinbeatty/git-multipush.git', :revision => 'HEAD'
  depends_on 'asciidoc' => :build if build.head?
  def install
    if build.head?
      ENV['GIT_DIR'] = cached_download/'.git'
      inreplace 'make/gen-version.mk', '.git', '$(GIT_DIR)'
      system "make"
    end
    system "make", "prefix=#{prefix}", "install"
  end
end
 |