homebrew-core/Formula/gforth.rb
Jack Nagel 6b0f64e8b4 Use ENV.cc and ENV.cxx where appropriate
Cursory testing shows that these all build with llvm and those that have
binaries work. Formulae should be marked 'fails_with_llvm' if there are
issues found later.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-12-09 17:50:34 -06:00

17 lines
586 B
Ruby

require 'formula'
class Gforth < Formula
url 'http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.0.tar.gz'
homepage 'http://www.jwdt.com/~paysan/gforth.html'
md5 '2979ae86ede73ce2b3576dae957f4098'
def install
ENV.j1 # Parallel builds won't work
# Install 32-bit only, even on Snow Leopard. See:
# http://www.groupsrv.com/computers/about648918.html
ENV['CC'] = "#{ENV.cc} -m32"
system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make" # Separate build steps.
system "make install"
end
end