diff options
| author | Adam Vandenberg | 2012-09-03 16:26:10 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-03 16:26:10 -0700 |
| commit | 93fad0d154afa99bcd439aaf82a9ab49a09d0f17 (patch) | |
| tree | b7dbd93c52fbd0346d5f3ace677425bb45d2d509 /Library | |
| parent | e8b62ad56f0e244a2a6d0a9cea2433976c5a2413 (diff) | |
| download | homebrew-93fad0d154afa99bcd439aaf82a9ab49a09d0f17.tar.bz2 | |
ice: use new dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ice.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/ice.rb b/Library/Formula/ice.rb index 8352ccc04..4fb94b1cb 100644 --- a/Library/Formula/ice.rb +++ b/Library/Formula/ice.rb @@ -17,12 +17,8 @@ class Ice < Formula ] end - def options - [ - ['--doc', 'Install documentation'], - ['--demo', 'Build demos'] - ] - end + option 'doc', 'Install documentation' + option 'demo', 'Build demos' # See: # http://www.zeroc.com/forums/bug-reports/4965-slice2cpp-output-does-not-compile-standards-conformant-compiler.html @@ -47,8 +43,8 @@ class Ice < Formula # what want we build? wb = 'config src include' - wb += ' doc' if ARGV.include? '--doc' - wb += ' demo' if ARGV.include? '--demo' + wb += ' doc' if build.include? 'doc' + wb += ' demo' if build.include? 'demo' inreplace "cpp/Makefile" do |s| s.change_make_var! "SUBDIRS", wb end |
