aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ice.rb12
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