diff options
| author | Adam Vandenberg | 2012-08-08 22:15:01 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:27:29 -0700 |
| commit | 1b0befce9b3b62a8bdf477827bddb767e861a84e (patch) | |
| tree | 3d867ad9dddb0d89a55416c3b86e4fdbf3ec7db1 /Library/Formula/blahtexml.rb | |
| parent | 73e763bf68734d307d2e2501b338c7c4519b772e (diff) | |
| download | homebrew-1b0befce9b3b62a8bdf477827bddb767e861a84e.tar.bz2 | |
Blahtexml: use options dsl
Diffstat (limited to 'Library/Formula/blahtexml.rb')
| -rw-r--r-- | Library/Formula/blahtexml.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/blahtexml.rb b/Library/Formula/blahtexml.rb index 5604568d5..374bb5379 100644 --- a/Library/Formula/blahtexml.rb +++ b/Library/Formula/blahtexml.rb @@ -5,17 +5,14 @@ class Blahtexml < Formula 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 + 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 ARGV.include? '--blahtex-only' + unless build.include? '--blahtex-only' system "make blahtexml-mac" bin.install 'blahtexml' end |
