homebrew-core/Formula/blahtexml.rb
Juan Sebastian Casallas 8266581c49 blahtexml: add --only-blahtex option
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-03-25 20:17:22 -07:00

23 lines
541 B
Ruby

require 'formula'
class Blahtexml < Formula
homepage 'http://gva.noekeon.org/blahtexml/'
url 'http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz'
md5 'ed790599223c2f8f6d205be8988882de'
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"
bin.install 'blahtex'
unless ARGV.include? '--blahtex-only'
system "make blahtexml-mac"
bin.install 'blahtexml'
end
end
end