aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNevill2013-10-14 23:34:25 +0800
committerAdam Vandenberg2013-10-16 06:37:03 -0700
commit7bbbd54effecf40f7434fb65a8f9687ed4ae03b2 (patch)
treed50dcd23d7618b75056a28027845c4acdf9c3d3c /Library
parent70a0cc3d62a7ed6bbed4b78cb8a9f5315ad1f750 (diff)
downloadhomebrew-7bbbd54effecf40f7434fb65a8f9687ed4ae03b2.tar.bz2
tig: add '--with-docs'
Closes #22946. Closes #23270. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/tig.rb13
1 files changed, 10 insertions, 3 deletions
diff --git a/Library/Formula/tig.rb b/Library/Formula/tig.rb
index 2e2a48e65..68bb2ea46 100644
--- a/Library/Formula/tig.rb
+++ b/Library/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