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/'
|
2010-10-17 10:53:26 +00:00
|
|
|
# Use GitHub; tarball doesn't have everything needed for building on OS X
|
2011-11-10 05:45:38 +00:00
|
|
|
url 'https://github.com/plt/racket.git', :tag => 'v5.2'
|
|
|
|
version '5.2'
|
2010-08-19 05:03:56 +00:00
|
|
|
|
2011-02-25 12:46:33 +00:00
|
|
|
# Don't strip symbols; need them for dynamic linking.
|
2010-08-19 05:03:56 +00:00
|
|
|
skip_clean 'bin'
|
|
|
|
|
|
|
|
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"
|
2010-10-17 10:53:26 +00:00
|
|
|
ohai "Installing might take a long time (~40 minutes)"
|
2010-08-19 05:03:56 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|