Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Racket 5.3.3

  • Loading branch information...
commit d23512a8fe2e7e77f0eef2e667d3846630112ab3 1 parent 59f8198
@kavu authored
Showing with 16 additions and 7 deletions.
  1. +16 −7 Library/Formula/plt-racket.rb
View
23 Library/Formula/plt-racket.rb
@@ -4,24 +4,33 @@ class PltRacket < Formula
homepage 'http://racket-lang.org/'
# Use GitHub tarball as the release tarball doesn't have
# everything needed for building on OS X
- url 'https://github.com/plt/racket/tarball/v5.2'
- sha1 'bb2c6b6504796a88dada10b510f040b5bbec7b2e'
+ url 'https://github.com/plt/racket/tarball/v5.3.3'
+ sha1 '2189e72f04d890e12fa9d2776fc74a6f1ecc2bf7'
+
+ depends_on :libtool
+
+ option 'with-docs', "Build with docs"
def install
cd 'src' do
- args = ["--disable-debug", "--disable-dependency-tracking",
- "--enable-xonx",
- "--enable-shared",
- "--prefix=#{prefix}" ]
+ args = [ "--disable-debug", "--disable-dependency-tracking",
+ "--enable-lt=glibtool",
+ "--prefix=#{prefix}",
+ "--enable-macprefix"]
+
+ args << "--disable-docs" unless build.include? 'with-docs'
if MacOS.prefer_64_bit?
- args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
+ args += ["--enable-mac64", "--enable-sgc"]
end
system "./configure", *args
system "make"
ohai "Installing may take a long time (~40 minutes)" unless ARGV.verbose?
system "make install"
+
+ rm_rf Dir["#{prefix}/*.app", "#{prefix}/lib/{*.dylib,starter,buildinfo}"]
+ rm_rf Dir["#{prefix}/bin/*"] - Dir["#{prefix}/bin/{racket,raco}"]
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.