64959ae7b2
Closes Homebrew/homebrew#27318. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
34 lines
894 B
Ruby
34 lines
894 B
Ruby
require 'formula'
|
|
|
|
class PltRacket < Formula
|
|
homepage 'http://racket-lang.org/'
|
|
url 'https://github.com/plt/racket/archive/v6.0.tar.gz'
|
|
sha1 'b37c26e292ac28ec5cd07ac2752ceb6698989f34'
|
|
|
|
def install
|
|
cd 'racket/src' do
|
|
args = ["--disable-debug", "--disable-dependency-tracking",
|
|
"--enable-xonx",
|
|
"--prefix=#{prefix}" ]
|
|
|
|
args << '--disable-mac64' if not MacOS.prefer_64_bit?
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
This is a minimal Racket distribution.
|
|
If you want to use the DrRacket IDE, we recommend that you use
|
|
the PLT-provided packages from http://racket-lang.org/download/.
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
output = `'#{bin}/racket' -e '(displayln "Hello Homebrew")'`
|
|
assert $?.success?
|
|
assert_match /Hello Homebrew/, output
|
|
end
|
|
end
|