homebrew-core/Formula/plt-racket.rb

30 lines
794 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class PltRacket < Formula
# 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'
homepage 'http://racket-lang.org/'
version '5.1.1'
# Don't strip symbols; need them for dynamic linking.
skip_clean 'bin'
def install
Dir.chdir 'src' do
args = ["--disable-debug", "--disable-dependency-tracking",
"--enable-xonx",
"--enable-shared",
"--prefix=#{prefix}" ]
2011-03-18 17:30:47 +00:00
if MacOS.prefer_64_bit?
args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
end
system "./configure", *args
system "make"
ohai "Installing might take a long time (~40 minutes)"
system "make install"
end
end
end