aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJuan Sebastian Casallas2011-11-21 10:23:54 +0100
committerAdam Vandenberg2012-03-25 20:17:22 -0700
commit31c3cd1353c498206ad62fcd470d2d653d9db00e (patch)
tree9b750d2a19425a6d90c708b3440a1bd01e4e81b0 /Library
parent45dada1186a77e4127b3679d2f016ac39e0d3ed6 (diff)
downloadhomebrew-31c3cd1353c498206ad62fcd470d2d653d9db00e.tar.bz2
blahtexml: add --only-blahtex option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/blahtexml.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/Library/Formula/blahtexml.rb b/Library/Formula/blahtexml.rb
index 8623977a0..5604568d5 100644
--- a/Library/Formula/blahtexml.rb
+++ b/Library/Formula/blahtexml.rb
@@ -5,10 +5,19 @@ class Blahtexml < Formula
url 'http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz'
md5 'ed790599223c2f8f6d205be8988882de'
- depends_on 'xerces-c'
+ depends_on 'xerces-c' unless ARGV.include? '--blahtex-only'
+
+ def options
+ [['--blahtex-only', "Build only blahtex, not blahtexml"]]
+ end
+
def install
- system "make blahtex-mac blahtexml-mac"
- bin.install 'blahtex', 'blahtexml'
+ system "make blahtex-mac"
+ bin.install 'blahtex'
+ unless ARGV.include? '--blahtex-only'
+ system "make blahtexml-mac"
+ bin.install 'blahtexml'
+ end
end
end