aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gambit-scheme.rb
diff options
context:
space:
mode:
authorMarkus Prinz2009-10-26 15:44:50 +0100
committerMax Howell2009-11-07 18:22:35 +0000
commit64c128db41419b303fa7a33eafba4e3e7b1f376c (patch)
tree9ad1007d61c95c9c33dcc3f25f1eaa9da47fdf33 /Library/Formula/gambit-scheme.rb
parente221c229152f711352fc8725e3d3db347d6bb18b (diff)
downloadhomebrew-64c128db41419b303fa7a33eafba4e3e7b1f376c.tar.bz2
Add formulae for Gambit Scheme.
Gambit Scheme doesn't like llvm-gcc, and heavy optimizations. Until safe settings can be figure out, build it with no optimizations.
Diffstat (limited to 'Library/Formula/gambit-scheme.rb')
-rw-r--r--Library/Formula/gambit-scheme.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/Library/Formula/gambit-scheme.rb b/Library/Formula/gambit-scheme.rb
new file mode 100644
index 000000000..9004c475b
--- /dev/null
+++ b/Library/Formula/gambit-scheme.rb
@@ -0,0 +1,24 @@
+require 'formula'
+
+class GambitScheme <Formula
+ url 'http://www.iro.umontreal.ca/~gambit/download/gambit/v4.5/source/gambc-v4_5_2.tgz'
+ homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page'
+ md5 '71bd4b5858f807c4a8ce6ce68737db16'
+
+ def install
+ # Gambit Scheme currently fails to build with llvm-gcc
+ # (ld crashes during the build process)
+ ENV.gcc_4_2
+ # Gambit Scheme will not build with heavy optimizations. Disable all
+ # optimizations until safe values can be figured out.
+ ENV.no_optimization
+
+ system "./configure", "--prefix=#{prefix}",
+ "--disable-debug",
+ # Recommended to improve the execution speed and compactness
+ # of the generated executables. Increases compilation times.
+ "--enable-single-host"
+
+ system "make install"
+ end
+end