7bd947eb0b
* Use new "url" features * Use keg_only DSL * Use "skip_clean :all" DSL * Whitespace and style cleanups * Make bash invocations less silly * Use new man2-man8 helpers * Remove "FileUtils." since it is included in Formula * Use real names for deps instead of aliases * ENV.x11 now updates path, so remove that from individual brews
39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
require 'formula'
|
|
|
|
# References:
|
|
# * http://smalltalk.gnu.org/wiki/building-gst-guides
|
|
#
|
|
# Note that we build 32-bit, which means that 64-bit
|
|
# optional dependencies will break the build. You may need
|
|
# to "brew unlink" these before installing GNU Smalltalk and
|
|
# "brew link" them afterwards:
|
|
# * gdbm
|
|
|
|
class GnuSmalltalk <Formula
|
|
url 'ftp://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.2.tar.gz'
|
|
homepage 'http://smalltalk.gnu.org/'
|
|
sha1 'a985d69e4760420614c9dfe4d3605e47c5eb8faa'
|
|
|
|
# depends_on 'gmp' => :optional # 32/64 built build problems
|
|
|
|
def install
|
|
fails_with_llvm "Codegen problems with LLVM"
|
|
|
|
# 64-bit version doesn't build, so force 32 bits.
|
|
ENV.m32
|
|
|
|
# GNU Smalltalk thinks it needs GNU awk, but it works fine
|
|
# with OS X awk, so let's trick configure.
|
|
here = Dir.pwd
|
|
system "ln -s /usr/bin/awk #{here}/gawk"
|
|
ENV['AWK'] = "#{here}/gawk"
|
|
|
|
ENV['FFI_CFLAGS'] = '-I/usr/include/ffi'
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
"--with-readline=/usr/lib"
|
|
system "make"
|
|
ENV.j1 # Parallel install doesn't work
|
|
system "make install"
|
|
end
|
|
end
|