homebrew-core/Formula/git-cola.rb
Brett Koonce 8d9b300bb0 git-cola 1.9.3
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-12-17 23:35:41 +00:00

35 lines
903 B
Ruby

require 'formula'
class GitCola < Formula
homepage 'http://git-cola.github.io/'
url 'https://github.com/git-cola/git-cola/archive/v1.9.3.tar.gz'
sha1 'f180befabef2b7286953b4b760eea8e306613fd4'
head 'https://github.com/git-cola/git-cola.git'
option 'with-docs', "Build man pages using asciidoc and xmlto"
depends_on :python
depends_on 'pyqt'
if build.include? 'with-docs'
# these are needed to build man pages
depends_on 'asciidoc'
depends_on 'xmlto'
end
def install
python do
# The python do block creates the PYTHONPATH and temp. site-packages
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
end