From 5fa2431a05ca6ddbe7ca2e6bdcbdd8682e00a5cf Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 12 Feb 2012 11:07:38 -0800 Subject: fantom: use install_symlink --- Library/Formula/fantom.rb | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3