homebrew-core/Formula/fantom.rb
Ealden Esto E. Escanan c488ab7ebd Fantom 1.0.61
Closes Homebrew/homebrew#8744.

Signed-off-by: Ealden Esto E. Escanan <ealden@gmail.com>
Closes Homebrew/homebrew#8744.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-11-22 20:13:52 -08:00

27 lines
679 B
Ruby

require 'formula'
class Fantom < Formula
url 'http://fan.googlecode.com/files/fantom-1.0.61.zip'
homepage 'http://fantom.org'
md5 '4ead834efae383be885401a747edc6af'
def options
[['--with-src', 'Also install fantom source'],
['--with-examples', 'Also install fantom examples']]
end
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'
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
end
end