2011-02-25 19:40:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GitCola < Formula
|
2013-04-07 02:34:41 +00:00
|
|
|
homepage 'http://git-cola.github.io/'
|
2014-03-16 10:32:26 +00:00
|
|
|
url 'https://github.com/git-cola/git-cola/archive/v2.0.1.tar.gz'
|
|
|
|
sha1 '5e6fd0ac4cf4161332bec8257b31bb7a3f041494'
|
2012-08-28 04:13:20 +00:00
|
|
|
|
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
|
|
|
|
2012-08-28 04:13:20 +00:00
|
|
|
option 'with-docs', "Build man pages using asciidoc and xmlto"
|
2011-02-25 19:40:36 +00:00
|
|
|
|
2012-08-28 04:13:20 +00:00
|
|
|
depends_on 'pyqt'
|
2012-01-05 05:42:13 +00:00
|
|
|
|
2014-03-06 20:40:26 +00:00
|
|
|
if build.with? "docs"
|
2012-01-05 05:42:13 +00:00
|
|
|
# these are needed to build man pages
|
|
|
|
depends_on 'asciidoc'
|
|
|
|
depends_on 'xmlto'
|
|
|
|
end
|
|
|
|
|
2011-02-25 19:40:36 +00:00
|
|
|
def install
|
2014-01-04 13:06:07 +00:00
|
|
|
system "make", "prefix=#{prefix}", "install"
|
|
|
|
|
2014-03-06 20:40:26 +00:00
|
|
|
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"
|
2012-01-05 05:42:13 +00:00
|
|
|
end
|
2011-02-25 19:40:36 +00:00
|
|
|
end
|
2012-08-21 03:41:11 +00:00
|
|
|
|
2011-02-25 19:40:36 +00:00
|
|
|
end
|