From 93fad0d154afa99bcd439aaf82a9ab49a09d0f17 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 3 Sep 2012 16:26:10 -0700 Subject: ice: use new dsl --- Library/Formula/ice.rb | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3