diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fantom.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Formula/fantom.rb b/Library/Formula/fantom.rb index c3450e0d0..8d092d180 100644 --- a/Library/Formula/fantom.rb +++ b/Library/Formula/fantom.rb @@ -1,8 +1,8 @@ require 'formula' class Fantom < Formula - url 'http://fan.googlecode.com/files/fantom-1.0.61.zip' homepage 'http://fantom.org' + url 'http://fan.googlecode.com/files/fantom-1.0.61.zip' md5 '4ead834efae383be885401a747edc6af' def options @@ -12,16 +12,11 @@ class Fantom < Formula def install rm_f Dir["bin/*.exe", "lib/dotnet/*"] - rm_rf Dir["examples"] unless ARGV.include? '--with-examples' - rm_rf Dir["src"] unless ARGV.include? '--with-src' + rm_rf "examples" unless ARGV.include? '--with-examples' + rm_rf "src" unless ARGV.include? '--with-src' libexec.install Dir['*'] - bin.mkpath - Dir["#{libexec}/bin/*"].each do |f| - next unless File.extname(f).empty? - chmod 0755, f - ln_s f, bin+File.basename(f) - end + bin.install_symlink Dir["#{libexec}/bin/*"] end end |
