Optionally run "make check" or build as shared library when installing Gambit Scheme
parent
99babaa681
commit
f18188b14d
|
@ -5,6 +5,13 @@ class GambitScheme <Formula
|
||||||
homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page'
|
homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page'
|
||||||
md5 '71bd4b5858f807c4a8ce6ce68737db16'
|
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
|
def install
|
||||||
# Gambit Scheme currently fails to build with llvm-gcc
|
# Gambit Scheme currently fails to build with llvm-gcc
|
||||||
# (ld crashes during the build process)
|
# (ld crashes during the build process)
|
||||||
|
@ -13,12 +20,19 @@ class GambitScheme <Formula
|
||||||
# optimizations until safe values can be figured out.
|
# optimizations until safe values can be figured out.
|
||||||
ENV.no_optimization
|
ENV.no_optimization
|
||||||
|
|
||||||
system "./configure", "--prefix=#{prefix}",
|
configure_args = [
|
||||||
"--disable-debug",
|
"--prefix=#{prefix}",
|
||||||
# Recommended to improve the execution speed and compactness
|
"--disable-debug",
|
||||||
# of the generated executables. Increases compilation times.
|
# Recommended to improve the execution speed and compactness
|
||||||
"--enable-single-host"
|
# 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"
|
system "make install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue