blob: ca9b0fde78733e82e2a0f93e380fba0c12056919 (
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
31
32
33
34
35
36
37
38
|
require "formula"
class GitCola < Formula
homepage "http://git-cola.github.io/"
url "https://github.com/git-cola/git-cola/archive/v2.0.6.tar.gz"
sha1 "8fd261bf7aa49515d2bc2be3028562921c4eef02"
head "https://github.com/git-cola/git-cola.git"
bottle do
cellar :any
sha1 "3d25d2a75de62577e8e9a681657fa2f5403c26c9" => :mavericks
sha1 "ee451c446b61864a44347d2f544c62a49bb021f1" => :mountain_lion
sha1 "88e4243fb3c9ee15465825c70a388235904c9f06" => :lion
end
option "with-docs", "Build man pages using asciidoc and xmlto"
depends_on "pyqt"
if build.with? "docs"
# these are needed to build man pages
depends_on "asciidoc"
depends_on "xmlto"
end
def install
system "make", "prefix=#{prefix}", "install"
if build.with? "docs"
system "make", "-C", "share/doc/git-cola",
"-f", "Makefile.asciidoc",
"prefix=#{prefix}",
"install", "install-html"
end
end
end
|