2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-19 09:35:43 +00:00
|
|
|
|
2009-12-03 07:07:11 +00:00
|
|
|
# References:
|
|
|
|
# * http://smalltalk.gnu.org/wiki/building-gst-guides
|
|
|
|
|
2009-09-19 09:35:43 +00:00
|
|
|
class GnuSmalltalk <Formula
|
2009-12-03 07:07:11 +00:00
|
|
|
url 'ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.1.tar.gz'
|
|
|
|
homepage 'http://smalltalk.gnu.org/'
|
|
|
|
md5 'fb4630a86fc47c893cf9eb9adccd4851'
|
2009-09-19 09:35:43 +00:00
|
|
|
|
2009-12-03 07:07:11 +00:00
|
|
|
# gmp is an optional dep, but doesn't compile on 10.5
|
|
|
|
# depends_on 'gmp' => :optional
|
2009-09-19 09:35:43 +00:00
|
|
|
|
|
|
|
def install
|
2009-12-03 07:07:11 +00:00
|
|
|
# Codegen problems with LLVM
|
|
|
|
ENV.gcc_4_2
|
|
|
|
# 64-bit version doesn't build, so force 32 bits.
|
|
|
|
ENV.m32
|
2009-09-19 09:35:43 +00:00
|
|
|
ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
|
2009-12-03 07:07:11 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--with-readline=/usr/lib"
|
|
|
|
system "make"
|
|
|
|
ENV.j1 # Parallel install doesn't work
|
2009-09-19 09:35:43 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|