homebrew-core/Formula/fantom.rb

23 lines
558 B
Ruby
Raw Normal View History

require 'formula'
class Fantom < Formula
homepage 'http://fantom.org'
2012-02-12 19:07:38 +00:00
url 'http://fan.googlecode.com/files/fantom-1.0.61.zip'
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/*"]
2012-02-12 19:07:38 +00:00
rm_rf "examples" unless ARGV.include? '--with-examples'
rm_rf "src" unless ARGV.include? '--with-src'
libexec.install Dir['*']
2012-02-12 19:07:38 +00:00
bin.install_symlink Dir["#{libexec}/bin/*"]
end
end