2011-02-25 19:40:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitCola < Formula
|
2012-01-05 05:42:13 +00:00
|
|
|
homepage 'http://git-cola.github.com/'
|
2012-05-05 04:31:21 +00:00
|
|
|
url 'https://github.com/git-cola/git-cola/tarball/v1.7.7'
|
|
|
|
md5 'c48e597494851f8fd8b1829bd0291443'
|
2012-01-26 00:05:15 +00:00
|
|
|
head 'https://github.com/git-cola/git-cola.git'
|
2011-02-25 19:40:36 +00:00
|
|
|
|
|
|
|
depends_on 'pyqt'
|
|
|
|
|
2012-01-05 05:42:13 +00:00
|
|
|
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
|
|
|
|
|
2011-02-25 19:40:36 +00:00
|
|
|
def install
|
2012-01-05 05:42:13 +00:00
|
|
|
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
|
2011-02-25 19:40:36 +00:00
|
|
|
end
|
|
|
|
end
|