e1bb919734
Replaced ENV.gcc_4_2 + comments with calls to "fails_with_llvm", to specifically message to the user when a formula is known or suspected to not build with LLVM. If the user specifies "--use-llvm", the message will be displayed, but compilation will be tried anyway. Since using LLVM is now an advanced/hidden feature instead of the default on 10.6, we'll let the user try anyway (and submit patches if things are now working.)
39 lines
1.1 KiB
Ruby
39 lines
1.1 KiB
Ruby
require 'formula'
|
|
|
|
class GambitScheme <Formula
|
|
url 'http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_0.tgz'
|
|
homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page'
|
|
md5 '4f0e8b3e90a96f2203cbaf1e1cc1388a'
|
|
|
|
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
|
|
fails_with_llvm "ld crashes during the build process"
|
|
# Gambit Scheme doesn't like full optimizations
|
|
ENV.O2
|
|
|
|
configure_args = [
|
|
"--prefix=#{prefix}",
|
|
"--infodir=#{info}",
|
|
"--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'
|
|
|
|
ENV.j1
|
|
system "make"
|
|
system "make install"
|
|
end
|
|
end
|