aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fantom.rb
blob: 8d092d180535dafe712bf27ab69285f1ea0f5f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
require 'formula'

class Fantom < Formula
  homepage 'http://fantom.org'
  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/*"]
    rm_rf "examples" unless ARGV.include? '--with-examples'
    rm_rf "src" unless ARGV.include? '--with-src'

    libexec.install Dir['*']

    bin.install_symlink Dir["#{libexec}/bin/*"]
  end
end