diff options
| author | Adam Vandenberg | 2012-07-30 13:14:17 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-08 22:01:39 -0700 |
| commit | bccb399b4917ddd10df95cff500dcd289da948ad (patch) | |
| tree | 95350ed4ceaa6d99adea61cf96c1d077b0d12ff1 | |
| parent | 1ccbc7d7d2051d5a86302544905706c38d7802b1 (diff) | |
| download | homebrew-bccb399b4917ddd10df95cff500dcd289da948ad.tar.bz2 | |
apollo: use options dsl
| -rw-r--r-- | Library/Formula/apollo.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Formula/apollo.rb b/Library/Formula/apollo.rb index 584caf87a..1d9a5c231 100644 --- a/Library/Formula/apollo.rb +++ b/Library/Formula/apollo.rb @@ -20,25 +20,20 @@ class Apollo < Formula version "1.3" md5 '13759c529b238731ebea269254a840b9' - - def options - [ - ["--no-bdb", "Install without bdb store support."], - ["--no-mqtt", "Install without MQTT protocol support."] - ] - end + option "no-bdb", "Install without bdb store support." + option "no-mqtt", "Install without MQTT protocol support." def install prefix.install %w{ LICENSE NOTICE readme.html docs examples } libexec.install Dir['*'] - unless ARGV.include? "--no-bdb" + unless build.include? "no-bdb" BerkeleyDbJe.new.brew do (libexec+"lib").install Dir['*.jar'] end end - unless ARGV.include? "--no-mqtt" + unless build.include? "no-mqtt" FuseMQApolloMQTT.new.brew do (libexec+"lib").install Dir['*.jar'] end |
