blob: de5fa7614de12c0926c8dd2f585fc8f92fd5b31d (
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
|
class GitCola < Formula
homepage "http://git-cola.github.io/"
url "https://github.com/git-cola/git-cola/archive/v2.1.0.tar.gz"
sha1 "c93e74b021e6e5df92a46a3d05ac8a6377571fa8"
head "https://github.com/git-cola/git-cola.git"
bottle do
sha1 "bc3a197d229a4dbcefb593ee8ee0453d87eb7e8f" => :yosemite
sha1 "13d367b370dd4d0593e78608394eb381987b9847" => :mavericks
sha1 "4f1c8150aeb4273789527251e7c042152ed243d5" => :mountain_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
test do
system "#{bin}/git-cola", "--version"
end
end
|