homebrew-core/Formula/gforth.rb

35 lines
804 B
Ruby
Raw Normal View History

2010-05-28 20:45:09 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Gforth < Formula
2012-11-28 05:55:56 +00:00
homepage 'http://bernd-paysan.de/gforth.html'
2010-05-28 20:45:09 +00:00
url 'http://www.complang.tuwien.ac.at/forth/gforth/gforth-0.7.0.tar.gz'
sha1 '5bb357268cba683f2a8c63d2a4bcab8f41cb0086'
2010-05-28 20:45:09 +00:00
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
2010-05-28 20:45:09 +00:00
def install
ENV.j1 # Parallel builds won't work
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
2010-05-28 20:45:09 +00:00
system "make" # Separate build steps.
system "make install"
end
end