require 'formula' # References: # * http://smalltalk.gnu.org/wiki/building-gst-guides class GnuSmalltalk :optional def install # Codegen problems with LLVM ENV.gcc_4_2 # 64-bit version doesn't build, so force 32 bits. ENV.m32 ENV['FFI_CFLAGS'] = '-I/usr/include/ffi' system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking", "--with-readline=/usr/lib" system "make" ENV.j1 # Parallel install doesn't work system "make install" end end