homebrew-core/Formula/git-cola.rb
David Aguilar db27bd7a3d git-cola 1.9.4
Closes Homebrew/homebrew#26304.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2014-01-31 10:03:07 -06:00

31 lines
771 B
Ruby

require 'formula'
class GitCola < Formula
homepage 'http://git-cola.github.io/'
url 'https://github.com/git-cola/git-cola/archive/v1.9.4.tar.gz'
sha1 '09f975daa863b08335a4dade66b4d218475a8957'
head 'https://github.com/git-cola/git-cola.git'
option 'with-docs', "Build man pages using asciidoc and xmlto"
depends_on 'pyqt'
if build.include? '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.include? 'with-docs'
system "make", "-C", "share/doc/git-cola",
"-f", "Makefile.asciidoc",
"prefix=#{prefix}",
"install", "install-html"
end
end
end