aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorskim2010-12-04 20:25:19 -0600
committerAdam Vandenberg2010-12-04 18:34:59 -0800
commite930d7b6dc02bc184c20f530a63bee1167f59be8 (patch)
tree0ef1e6be6a2ef5ca6a1dee613256806e3bbfb365 /Library/Formula
parent7d0a6c74ec91194c2a7cd2b302736995822929e9 (diff)
downloadhomebrew-e930d7b6dc02bc184c20f530a63bee1167f59be8.tar.bz2
GNU Smalltalk - fixed issue with REPL and readline
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/gnu-smalltalk.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb
index 5f1da55a5..9c5f6a510 100644
--- a/Library/Formula/gnu-smalltalk.rb
+++ b/Library/Formula/gnu-smalltalk.rb
@@ -17,6 +17,8 @@ class GnuSmalltalk <Formula
# 'gmp' is an optional dep, it is built 64-bit on Snow Leopard
# (and this brew is forced to build in 32-bit mode.)
+ depends_on 'readline'
+
def install
fails_with_llvm "Codegen problems with LLVM"
@@ -34,6 +36,8 @@ class GnuSmalltalk <Formula
EOS
end
+ readline = Formula.factory('readline')
+
# GNU Smalltalk thinks it needs GNU awk, but it works fine
# with OS X awk, so let's trick configure.
here = Dir.pwd
@@ -43,7 +47,7 @@ class GnuSmalltalk <Formula
ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
- "--with-readline=/usr/lib"
+ "--with-readline=#{readline.lib}"
system "make"
ENV.j1 # Parallel install doesn't work
system "make install"