b13613b4e6
Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Adam Vandenberg <flangy@gmail.com>
33 lines
836 B
Ruby
33 lines
836 B
Ruby
require 'formula'
|
|
|
|
class GitCola < Formula
|
|
homepage 'http://git-cola.github.com/'
|
|
url 'https://github.com/git-cola/git-cola/tarball/v1.7.7'
|
|
md5 'c48e597494851f8fd8b1829bd0291443'
|
|
head 'https://github.com/git-cola/git-cola.git'
|
|
|
|
depends_on 'pyqt'
|
|
|
|
def options
|
|
[['--build-docs', "Build man pages using asciidoc and xmlto"]]
|
|
end
|
|
|
|
if ARGV.include? '--build-docs'
|
|
# these are needed to build man pages
|
|
depends_on 'asciidoc'
|
|
depends_on 'xmlto'
|
|
end
|
|
|
|
def install
|
|
ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
if ARGV.include? '--build-docs'
|
|
system "make",
|
|
"-C", "share/doc/git-cola",
|
|
"-f", "Makefile.asciidoc",
|
|
"prefix=#{prefix}",
|
|
"install", "install-html"
|
|
end
|
|
end
|
|
end
|