blob: 484d1a406b0082ad816405bc88f7448c44e43e8f (
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
27
28
29
30
 | require 'formula'
class GitSubtree <Formula
  homepage 'https://github.com/apenwarr/git-subtree'
  url 'https://github.com/apenwarr/git-subtree/zipball/v0.4'
  version '0.4'
  md5 '904f325d2208ad5ca542e7bb56c50f9c'
  head 'git://github.com/apenwarr/git-subtree.git'
  def options
    [['--build-docs', "Build man pages using asciidoc and xmlto"]]
  end
  if ARGV.include? '--build-docs'
    # these are needed to build man pages
    depends_on 'asciidoc'
    depends_on 'xmlto'
  end
  def install
    if ARGV.include? '--build-docs'
      system "make doc"
      man1.install "git-subtree.1"
    else
      doc.install "git-subtree.txt"
    end
    bin.install "git-subtree.sh" => "git-subtree"
  end
end
 |