2014-07-26 04:21:07 +00:00
|
|
|
require "formula"
|
2011-02-25 19:40:36 +00:00
|
|
|
|
|
|
|
class GitCola < Formula
|
2014-07-26 04:21:07 +00:00
|
|
|
homepage "http://git-cola.github.io/"
|
|
|
|
url "https://github.com/git-cola/git-cola/archive/v2.0.4.tar.gz"
|
|
|
|
sha1 "c4d05ec81a41dfb1ee67cb2e658bdb3fe52b82a3"
|
2012-08-28 04:13:20 +00:00
|
|
|
|
2014-07-26 04:21:07 +00:00
|
|
|
head "https://github.com/git-cola/git-cola.git"
|
2011-02-25 19:40:36 +00:00
|
|
|
|
2014-07-26 04:21:07 +00:00
|
|
|
option "with-docs", "Build man pages using asciidoc and xmlto"
|
2011-02-25 19:40:36 +00:00
|
|
|
|
2014-07-26 04:21:07 +00:00
|
|
|
depends_on "pyqt"
|
2012-01-05 05:42:13 +00:00
|
|
|
|
2014-03-06 20:40:26 +00:00
|
|
|
if build.with? "docs"
|
2012-01-05 05:42:13 +00:00
|
|
|
# these are needed to build man pages
|
2014-07-26 04:21:07 +00:00
|
|
|
depends_on "asciidoc"
|
|
|
|
depends_on "xmlto"
|
2012-01-05 05:42:13 +00:00
|
|
|
end
|
|
|
|
|
2011-02-25 19:40:36 +00:00
|
|
|
def install
|
2014-01-04 13:06:07 +00:00
|
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
|
2014-03-06 20:40:26 +00:00
|
|
|
if build.with? "docs"
|
2014-01-04 13:06:07 +00:00
|
|
|
system "make", "-C", "share/doc/git-cola",
|
|
|
|
"-f", "Makefile.asciidoc",
|
|
|
|
"prefix=#{prefix}",
|
|
|
|
"install", "install-html"
|
2012-01-05 05:42:13 +00:00
|
|
|
end
|
2011-02-25 19:40:36 +00:00
|
|
|
end
|
2012-08-21 03:41:11 +00:00
|
|
|
|
2011-02-25 19:40:36 +00:00
|
|
|
end
|