diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git-cola.rb | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Library/Formula/git-cola.rb b/Library/Formula/git-cola.rb index ceeca0ecc..817d17aa1 100644 --- a/Library/Formula/git-cola.rb +++ b/Library/Formula/git-cola.rb @@ -3,16 +3,15 @@ require 'formula' class GitCola < Formula homepage 'http://git-cola.github.com/' url 'https://github.com/git-cola/git-cola/tarball/v1.8.0' - md5 'bbf727c0853ec4140684c2ddb5fd9cf2' + sha1 'c36607dbff93e0a36954b500548a90f26b7a0b74' + head 'https://github.com/git-cola/git-cola.git' - depends_on 'pyqt' + option 'with-docs', "Build man pages using asciidoc and xmlto" - def options - [['--build-docs', "Build man pages using asciidoc and xmlto"]] - end + depends_on 'pyqt' - if ARGV.include? '--build-docs' + if build.include? 'with-docs' # these are needed to build man pages depends_on 'asciidoc' depends_on 'xmlto' @@ -22,12 +21,11 @@ class GitCola < Formula ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages", ':' 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" + if build.include? 'with-docs' + system "make", "-C", "share/doc/git-cola", + "-f", "Makefile.asciidoc", + "prefix=#{prefix}", + "install", "install-html" end end |
