homebrew-core/Formula/fantom.rb
Martin Lau fd5da9ea99 fantom 1.0.58
* Fixed issue with files under fantom/.../libexec/bin/ having incorrect
  permissions (644 vs 755)

* Added options for '--with-src' and '--with-examples' to bring 'em back
  if desired (ie for IDE tooling support)

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-03-30 08:27:29 -07:00

27 lines
679 B
Ruby

require 'formula'
class Fantom < Formula
url 'http://fan.googlecode.com/files/fantom-1.0.58.zip'
homepage 'http://fantom.org'
md5 '2a74bbb7f398bfed4eed1fa2d147f384'
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