aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-multipush.rb
blob: 17fda8581a188682e5739afcc6153b93f4db5c50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require 'formula'

class GitMultipush < Formula
  homepage 'http://code.google.com/p/git-multipush/'
  url 'https://git-multipush.googlecode.com/files/git-multipush-2.3.tar.bz2'
  sha1 'a53f171af5e794afe9b1de6ccd9bd0661db6fd91'

  devel do
    url 'https://github.com/gavinbeatty/git-multipush/archive/git-multipush-v2.4.rc2.tar.gz'
    sha1 '7179bc729a1dee76a76e3c91935f524911037313'
    version '2.4-rc2'
  end

  head 'https://github.com/gavinbeatty/git-multipush.git'

  depends_on 'asciidoc' => :build

  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