From b9f3a3152651c7301bc8f3d4e1b47667698cdeb6 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 27 Aug 2012 22:02:27 -0700 Subject: fantom: use new dsl --- Library/Formula/fantom.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/fantom.rb b/Library/Formula/fantom.rb index 027937be3..697fa992e 100644 --- a/Library/Formula/fantom.rb +++ b/Library/Formula/fantom.rb @@ -5,18 +5,16 @@ class Fantom < Formula url 'http://fan.googlecode.com/files/fantom-1.0.63.zip' sha1 '21042981b63da9e8f170c6d53d6abcede7d2ba25' - def options - [['--with-src', 'Also install fantom source'], - ['--with-examples', 'Also install fantom examples']] - end + option 'with-src', 'Also install fantom source' + option 'with-examples', 'Also install fantom examples' # Select the OS X JDK path in the config file def patches; DATA; end def install rm_f Dir["bin/*.exe", "lib/dotnet/*"] - rm_rf "examples" unless ARGV.include? '--with-examples' - rm_rf "src" unless ARGV.include? '--with-src' + rm_rf "examples" unless build.include? 'with-examples' + rm_rf "src" unless build.include? 'with-src' libexec.install Dir['*'] system "chmod 0755 #{libexec}/bin/*" -- cgit v1.2.3