Files
tigerbrew/Library/Formula/retroforth.rb
Sevan Janiyan 068ee6eb47 retroforth: Add formula for v2023.3
Need to use a compiler with C11 type redefinition support such as
GCC 4.6 or newer.
Tested with GCC 5
brew install --cc=gcc-5 retroforth
2023-08-21 22:48:50 +01:00

20 lines
554 B
Ruby

class Retroforth < Formula
desc "A modern, pragmatic Forth drawing influence from many sources"
homepage "https://retroforth.org"
url "https://retroforth.org/r/RETRO12-2023.3.tar.gz"
version "2023.3"
sha256 "5ee8c2416598d11edac331c7f3f81141e249cb1826ad740ac5c28a7c39860671"
# Need a compiler with support for C11 typedef redefinitions e.g GCC 4.6 or newer
fails_with :gcc_4_0
fails_with :gcc
def install
system "make", "install", "PREFIX=#{prefix}", "CC=#{ENV.cc}"
end
test do
system "#{bin}/retro < /dev/null"
end
end