diff options
| author | Adam Vandenberg | 2012-02-12 11:07:38 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-12 20:08:57 -0800 |
| commit | 5fa2431a05ca6ddbe7ca2e6bdcbdd8682e00a5cf (patch) | |
| tree | 146b37608cec1991a1381cbf313068182e8d727f | |
| parent | ec72e2bb612a46c17752a04bb4c3c33b34cd3f09 (diff) | |
| download | homebrew-5fa2431a05ca6ddbe7ca2e6bdcbdd8682e00a5cf.tar.bz2 | |
fantom: use install_symlink
| -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 |
