aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-03 16:26:10 -0700
committerAdam Vandenberg2012-09-03 16:26:10 -0700
commit93fad0d154afa99bcd439aaf82a9ab49a09d0f17 (patch)
treeb7dbd93c52fbd0346d5f3ace677425bb45d2d509 /Library
parente8b62ad56f0e244a2a6d0a9cea2433976c5a2413 (diff)
downloadhomebrew-93fad0d154afa99bcd439aaf82a9ab49a09d0f17.tar.bz2
ice: use new dsl
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