require 'formula' class Blahtexml < Formula homepage 'http://gva.noekeon.org/blahtexml/' url 'http://gva.noekeon.org/blahtexml/blahtexml-0.9-src.tar.gz' sha1 '3961f5f388cbc2426aeffd9639a154d5e1690345' option 'blahtex-only', "Build only blahtex, not blahtexml" depends_on 'xerces-c' unless build.include? 'blahtex-only' def install system "make blahtex-mac" bin.install 'blahtex' unless build.include? 'blahtex-only' system "make blahtexml-mac" bin.install 'blahtexml' end end end