homebrew-core/Formula/gambit-scheme.rb

39 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class GambitScheme < Formula
homepage 'http://dynamo.iro.umontreal.ca/~gambit/wiki/index.php/Main_Page'
2012-03-11 04:39:45 +00:00
url 'http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_4.tgz'
md5 'f4a65f834b36b7ffbd0292021889a8e3'
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
2011-03-26 05:55:43 +00:00
skip_clean :all
fails_with :llvm do
build 2335
cause "ld crashes during the build process or segfault at runtime"
end
2011-03-26 05:55:43 +00:00
def install
2012-03-11 04:39:45 +00:00
args = ["--disable-debug",
"--prefix=#{prefix}",
"--infodir=#{info}",
# Recommended to improve the execution speed and compactness
# of the generated executables. Increases compilation times.
"--enable-single-host"]
args << "--enable-shared" if ARGV.include? '--enable-shared'
system "./configure", *args
system "make check" if ARGV.include? '--with-check'
2009-11-05 22:22:59 +00:00
ENV.j1
system "make"
system "make install"
end
end