aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fantom.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-27 22:02:27 -0700
committerAdam Vandenberg2012-08-27 22:02:27 -0700
commitb9f3a3152651c7301bc8f3d4e1b47667698cdeb6 (patch)
treec6a555aae220377bcf465442429f9c3a69a69ef8 /Library/Formula/fantom.rb
parent9df1e742d85ef7a7f64c914228e47e257cd2ff59 (diff)
downloadhomebrew-b9f3a3152651c7301bc8f3d4e1b47667698cdeb6.tar.bz2
fantom: use new dsl
Diffstat (limited to 'Library/Formula/fantom.rb')
-rw-r--r--Library/Formula/fantom.rb10
1 files changed, 4 insertions, 6 deletions
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/*"