From 2381cb06ead7367051c44a4523b190d645f0a1ca Mon Sep 17 00:00:00 2001 From: Nevill Date: Mon, 14 Oct 2013 23:34:25 +0800 Subject: [PATCH] tig: add '--with-docs' Closes Homebrew/homebrew#22946. Closes Homebrew/homebrew#23270. Signed-off-by: Adam Vandenberg --- Formula/tig.rb | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Formula/tig.rb b/Formula/tig.rb index 2e2a48e65b4..68bb2ea46f8 100644 --- a/Formula/tig.rb +++ b/Formula/tig.rb @@ -5,13 +5,20 @@ class Tig < Formula url 'http://jonas.nitro.dk/tig/releases/tig-1.2.1.tar.gz' sha1 '5755bae7342debf94ef33973e0eaff6207e623dc' - depends_on "asciidoc" - depends_on "xmlto" + option 'with-docs', 'Build man pages using asciidoc and xmlto' + + if build.with? "docs" + depends_on "asciidoc" + depends_on "xmlto" + end def install system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}" system "make install" - system "make install-doc-man" + + if build.with? "docs" + system "make install-doc-man" + end bash_completion.install 'contrib/tig-completion.bash' end