homebrew-core/Formula/git-cola.rb
David Aguilar e8af4eb92b git-cola 1.8.5
Closes Homebrew/homebrew#22903.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-28 10:37:59 -07: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.8.5.tar.gz'
sha1 '8fa48f2889715a9cb5dc7bdd9bf3ab0140f161be'
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