5d32c61282
Closes Homebrew/homebrew#27599. Signed-off-by: Brett Koonce <koonce@gmail.com>
31 lines
755 B
Ruby
31 lines
755 B
Ruby
require 'formula'
|
|
|
|
class GitCola < Formula
|
|
homepage 'http://git-cola.github.io/'
|
|
url 'https://github.com/git-cola/git-cola/archive/v2.0.1.tar.gz'
|
|
sha1 '5e6fd0ac4cf4161332bec8257b31bb7a3f041494'
|
|
|
|
head 'https://github.com/git-cola/git-cola.git'
|
|
|
|
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
|