2010-08-19 05:03:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class PltRacket < Formula
|
2012-02-21 06:04:21 +00:00
|
|
|
homepage 'http://racket-lang.org/'
|
2012-08-29 22:47:53 +00:00
|
|
|
# Use GitHub tarball as the release tarball doesn't have
|
|
|
|
# everything needed for building on OS X
|
|
|
|
url 'https://github.com/plt/racket/tarball/v5.2'
|
|
|
|
sha1 'bb2c6b6504796a88dada10b510f040b5bbec7b2e'
|
2010-08-19 05:03:56 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-21 06:04:21 +00:00
|
|
|
cd 'src' do
|
2010-10-17 10:53:26 +00:00
|
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
2010-08-19 05:03:56 +00:00
|
|
|
"--enable-xonx",
|
2010-10-17 10:53:26 +00:00
|
|
|
"--enable-shared",
|
2010-08-19 05:03:56 +00:00
|
|
|
"--prefix=#{prefix}" ]
|
|
|
|
|
2011-03-18 17:30:47 +00:00
|
|
|
if MacOS.prefer_64_bit?
|
2010-08-19 05:03:56 +00:00
|
|
|
args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
2012-08-29 22:47:53 +00:00
|
|
|
ohai "Installing may take a long time (~40 minutes)" unless ARGV.verbose?
|
2010-08-19 05:03:56 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|