2010-08-19 05:03:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class PltRacket < Formula
|
2010-10-17 10:53:26 +00:00
|
|
|
# Use GitHub; tarball doesn't have everything needed for building on OS X
|
2011-05-27 05:02:55 +00:00
|
|
|
url 'https://github.com/plt/racket.git', :tag => 'v5.1.1'
|
2010-08-19 05:03:56 +00:00
|
|
|
homepage 'http://racket-lang.org/'
|
2011-05-21 12:38:50 +00:00
|
|
|
version '5.1.1'
|
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
|
|
|
|
Dir.chdir '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
|