homebrew-core/Formula/plt-racket.rb
David Holm 78ae2f7268 plt-racket 6.0.1
Closes Homebrew/homebrew#29130.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-11 09:07:49 -05:00

35 lines
930 B
Ruby

require "formula"
class PltRacket < Formula
homepage "http://racket-lang.org/"
url "https://github.com/plt/racket/archive/v6.0.1.tar.gz"
sha1 "c459860b5bc9c37f6e5d9f3e74ae8fcdd44ef45e"
def install
cd 'racket/src' do
args = ["--disable-debug", "--disable-dependency-tracking",
"--enable-macprefix",
"--prefix=#{prefix}",
"--man=#{man}"]
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