homebrew-core/Formula/git-cola.rb

32 lines
755 B
Ruby
Raw Normal View History

require 'formula'
class GitCola < Formula
2013-04-07 02:34:41 +00:00
homepage 'http://git-cola.github.io/'
url 'https://github.com/git-cola/git-cola/archive/v1.9.4.tar.gz'
sha1 '09f975daa863b08335a4dade66b4d218475a8957'
2012-08-28 04:13:20 +00:00
head 'https://github.com/git-cola/git-cola.git'
2012-08-28 04:13:20 +00:00
option 'with-docs', "Build man pages using asciidoc and xmlto"
2012-08-28 04:13:20 +00:00
depends_on 'pyqt'
if build.with? "docs"
# these are needed to build man pages
depends_on 'asciidoc'
depends_on 'xmlto'
end
def install
2014-01-04 13:06:07 +00:00
system "make", "prefix=#{prefix}", "install"
if build.with? "docs"
2014-01-04 13:06:07 +00:00
system "make", "-C", "share/doc/git-cola",
"-f", "Makefile.asciidoc",
"prefix=#{prefix}",
"install", "install-html"
end
end
end