diff options
| author | Markus Prinz | 2009-10-26 16:52:46 +0100 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:35 +0000 |
| commit | d2054c643050214b88fd2ff2f710a4d9c1ccb704 (patch) | |
| tree | d187a3b70afde49b2d64bf09303f51b88ce82d97 /Library/Formula | |
| parent | 64c128db41419b303fa7a33eafba4e3e7b1f376c (diff) | |
| download | homebrew-d2054c643050214b88fd2ff2f710a4d9c1ccb704.tar.bz2 | |
Optionally run "make check" or build as shared library when installing Gambit Scheme
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/gambit-scheme.rb | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/Library/Formula/gambit-scheme.rb b/Library/Formula/gambit-scheme.rb index 9004c475b..7394c2b06 100644 --- a/Library/Formula/gambit-scheme.rb +++ b/Library/Formula/gambit-scheme.rb @@ -5,6 +5,13 @@ class GambitScheme <Formula homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page' md5 '71bd4b5858f807c4a8ce6ce68737db16' + def options + [ + ['--with-check', 'Execute "make check" before installing. Runs some basic scheme programs to ensure that gsi and gsc are working'], + ['--enable-shared', 'Build Gambit Scheme runtime as shared library'] + ] + end + def install # Gambit Scheme currently fails to build with llvm-gcc # (ld crashes during the build process) @@ -13,12 +20,19 @@ class GambitScheme <Formula # 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" + configure_args = [ + "--prefix=#{prefix}", + "--disable-debug", + # Recommended to improve the execution speed and compactness + # of the generated executables. Increases compilation times. + "--enable-single-host" + ] + + configure_args << "--enable-shared" if ARGV.include? '--enable-shared' + + system "./configure", *configure_args + system "make check" if ARGV.include? '--with-check' system "make install" end end |
