From b611544c0e101efbbfa451978cadfb8334ec6c32 Mon Sep 17 00:00:00 2001 From: Taylor Mitchell Date: Wed, 18 Aug 2010 22:03:56 -0700 Subject: [PATCH] Add formula for plt-racket (formerly plt-scheme) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Höppner <0xffea@gmail.com> * remove white spaces * use new macro snow_leopard_64? * ruby chdir --- Formula/plt-racket.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Formula/plt-racket.rb diff --git a/Formula/plt-racket.rb b/Formula/plt-racket.rb new file mode 100644 index 00000000000..34096301144 --- /dev/null +++ b/Formula/plt-racket.rb @@ -0,0 +1,29 @@ +require 'formula' + +class PltRacket 'v5.0.1' + homepage 'http://racket-lang.org/' + version '5.0.1' + + # executables work fine until clean step calls strip on them + skip_clean 'bin' + + def install + Dir.chdir 'src' do + + args = [ "--disable-debug", "--disable-dependency-tracking", + "--enable-xonx", + "--prefix=#{prefix}" ] + + if snow_leopard_64? + args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"] + end + + system "./configure", *args + system "make" + system "make install" + end + end +end