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/'
|
2013-09-28 07:35:55 +00:00
|
|
|
url 'https://github.com/git-cola/git-cola/archive/v1.8.5.tar.gz'
|
|
|
|
sha1 '8fa48f2889715a9cb5dc7bdd9bf3ab0140f161be'
|
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
|
|
|
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python
|
2012-08-28 04:13:20 +00:00
|
|
|
depends_on 'pyqt'
|
2012-01-05 05:42:13 +00:00
|
|
|
|
2012-08-28 04:13:20 +00:00
|
|
|
if build.include? '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
|
2013-01-21 09:33:56 +00:00
|
|
|
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
|
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
|