diff options
| author | Adam Vandenberg | 2012-08-27 22:02:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-08-27 22:02:27 -0700 |
| commit | b9f3a3152651c7301bc8f3d4e1b47667698cdeb6 (patch) | |
| tree | c6a555aae220377bcf465442429f9c3a69a69ef8 /Library | |
| parent | 9df1e742d85ef7a7f64c914228e47e257cd2ff59 (diff) | |
| download | homebrew-b9f3a3152651c7301bc8f3d4e1b47667698cdeb6.tar.bz2 | |
fantom: use new dsl
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/fantom.rb | 10 |
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/*" |
