fantom: use install_symlink

This commit is contained in:
Adam Vandenberg committed 2012-02-12 20:08:57 -08:00
1 parent ec72e2bb61
commit 5fa2431a05
1 file changed
+4 -9
+4 -9
View File
@@ -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