aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-cola.rb
diff options
context:
space:
mode:
authorDavid Aguilar2012-01-04 21:42:13 -0800
committerAdam Vandenberg2012-01-23 18:04:55 -0800
commit1988881d5aa12dff3db07bd647aeb3bbc166e8f5 (patch)
treed7fbcc6738f0a75020d107efa7855d78a539ac53 /Library/Formula/git-cola.rb
parent5f2245804752069f7db7beb855931678d671f0a6 (diff)
downloadhomebrew-1988881d5aa12dff3db07bd647aeb3bbc166e8f5.tar.bz2
git-cola 1.7.4.1
Set PYTHONPATH so that brew's PyQt4 modules are found. Update to v1.7.4.1 and change the URLs to use github. Add a --build-docs option for building manpages. Closes #7462. Signed-off-by: David Aguilar <davvid@gmail.com> Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/git-cola.rb')
-rw-r--r--Library/Formula/git-cola.rb29
1 files changed, 25 insertions, 4 deletions
diff --git a/Library/Formula/git-cola.rb b/Library/Formula/git-cola.rb
index eb87ee011..9bc64c266 100644
--- a/Library/Formula/git-cola.rb
+++ b/Library/Formula/git-cola.rb
@@ -1,13 +1,34 @@
require 'formula'
class GitCola < Formula
- url 'http://cola.tuxfamily.org/releases/cola-1.4.3.tar.gz'
- homepage 'http://cola.tuxfamily.org/'
- md5 '64d9c3e45a746c8775a0f33f65b91155'
+ url 'https://github.com/downloads/git-cola/git-cola/git-cola-1.7.4.1.tar.gz'
+ homepage 'http://git-cola.github.com/'
+ md5 'd0f667c91e12a707df73060bf0822c27'
+
+ head 'git://github.com/git-cola/git-cola.git'
depends_on 'pyqt'
+ def options
+ [['--build-docs', "Build man pages using asciidoc and xmlto"]]
+ end
+
+ if ARGV.include? '--build-docs'
+ # these are needed to build man pages
+ depends_on 'asciidoc'
+ depends_on 'xmlto'
+ end
+
def install
- system "make prefix=#{prefix} install"
+ ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
+ system "make", "prefix=#{prefix}", "install"
+
+ if ARGV.include? '--build-docs'
+ system "make",
+ "-C", "share/doc/git-cola",
+ "-f", "Makefile.asciidoc",
+ "prefix=#{prefix}",
+ "install", "install-html"
+ end
end
end