0ddc410096
Closes Homebrew/homebrew#22127. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
34 lines
812 B
Ruby
34 lines
812 B
Ruby
require 'formula'
|
|
|
|
class Gforth < Formula
|
|
homepage 'http://bernd-paysan.de/gforth.html'
|
|
url 'http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.2.tar.gz'
|
|
sha256 '77db9071c2442da3215da361b71190bccb153f81f4d01e5e8bc2c2cf8ee81b48'
|
|
|
|
depends_on :libtool
|
|
depends_on 'libffi'
|
|
depends_on 'pcre'
|
|
|
|
def darwin_major_version
|
|
# kern.osrelease: 11.4.2
|
|
full_version = `/usr/sbin/sysctl -n kern.osrelease`
|
|
full_version.split("\.")[0]
|
|
end
|
|
|
|
def install
|
|
ENV.deparallelize
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
]
|
|
|
|
if MacOS.prefer_64_bit?
|
|
args << "--build=x86_64-apple-darwin#{darwin_major_version}"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make" # Separate build steps.
|
|
system "make install"
|
|
end
|
|
end
|