aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/plt-racket.rb
blob: 340963011442670e2173809a7138b4d6fdb6567a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'formula'

class PltRacket <Formula
  # There are source packages but the OSX package is a .dmg and the Unix
  # tarball doesn't have everything needed for building on OSX
  url 'git://github.com/plt/racket.git', :tag => 'v5.0.1'
  homepage 'http://racket-lang.org/'
  version '5.0.1'

  # executables work fine until clean step calls strip on them
  skip_clean 'bin'

  def install
    Dir.chdir 'src' do

      args = [ "--disable-debug", "--disable-dependency-tracking",
              "--enable-xonx",
              "--prefix=#{prefix}" ]

      if snow_leopard_64?
        args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
      end

      system "./configure", *args
      system "make"
      system "make install"
    end
  end
end