aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorTaylor Mitchell2010-08-18 22:03:56 -0700
committerDavid Höppner2010-08-26 20:21:54 +0200
commit95630955367aacfcc39d005cd2154edc47c9cfa9 (patch)
treee92938eb72f8533c60c05ced4f78a6183e8d4688 /Library
parent7fedd0b28911d109c86775aa04a05f59d455ba34 (diff)
downloadhomebrew-95630955367aacfcc39d005cd2154edc47c9cfa9.tar.bz2
Add formula for plt-racket (formerly plt-scheme)
Signed-off-by: David Höppner <0xffea@gmail.com> * remove white spaces * use new macro snow_leopard_64? * ruby chdir
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/plt-racket.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/plt-racket.rb b/Library/Formula/plt-racket.rb
new file mode 100644
index 000000000..340963011
--- /dev/null
+++ b/Library/Formula/plt-racket.rb
@@ -0,0 +1,29 @@
+require 'formula'
+
+class PltRacket <Formula
+ # There are source packages but the OSX package is a .dmg and the Unix
+ # tarball doesn't have everything needed for building on OSX
+ url 'git://github.com/plt/racket.git', :tag => '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