aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-30 09:09:48 -0700
committerAdam Vandenberg2012-08-30 09:09:48 -0700
commit2edb06b82336fd12dc1efc242451356546194f83 (patch)
tree569902bbe16e26da61ac5016a0791815b041e7b2 /Library
parent20a395e4a1a4cd34ff0ddf41444cdfd7c4f81d82 (diff)
downloadhomebrew-2edb06b82336fd12dc1efc242451356546194f83.tar.bz2
gambit-scheme: use new dsl
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/gambit-scheme.rb14
1 files changed, 4 insertions, 10 deletions
diff --git a/Library/Formula/gambit-scheme.rb b/Library/Formula/gambit-scheme.rb
index 5231645ff..f52f8090e 100644
--- a/Library/Formula/gambit-scheme.rb
+++ b/Library/Formula/gambit-scheme.rb
@@ -5,14 +5,8 @@ class GambitScheme < Formula
url 'http://www.iro.umontreal.ca/~gambit/download/gambit/v4.6/source/gambc-v4_6_6.tgz'
sha256 '4e8b18bb350124138d1f9bf143dda0ab5e55f3c3d489a6dc233a15a003f161d2'
- 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
-
- skip_clean :all
+ option 'with-check', 'Execute "make check" before installing'
+ option 'enable-shared', 'Build Gambit Scheme runtime as shared library'
fails_with :llvm do
build 2335
@@ -26,7 +20,7 @@ class GambitScheme < Formula
# 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'
+ args << "--enable-shared" if build.include? 'enable-shared'
unless ENV.compiler == :gcc
opoo <<-EOS.undent
@@ -37,7 +31,7 @@ class GambitScheme < Formula
end
system "./configure", *args
- system "make check" if ARGV.include? '--with-check'
+ system "make check" if build.include? 'with-check'
ENV.j1
system "make"