mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-26 19:09:48 -05:00
fantom: use install_symlink
This commit is contained in:
1 parent
ec72e2bb61
commit
5fa2431a05
1 file changed
+4
-9
@@ -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
|
||||
Reference in new issue
Block a user