57 lines
1.7 KiB
Ruby
57 lines
1.7 KiB
Ruby
class GnuSmalltalk < Formula
|
|
desc "GNU Smalltalk interpreter and image"
|
|
homepage "http://smalltalk.gnu.org/"
|
|
url "https://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.5.tar.xz"
|
|
mirror "https://ftpmirror.gnu.org/smalltalk/smalltalk-3.2.5.tar.xz"
|
|
sha256 "819a15f7ba8a1b55f5f60b9c9a58badd6f6153b3f987b70e7b167e7755d65acc"
|
|
revision 8
|
|
head "https://github.com/gnu-smalltalk/smalltalk.git"
|
|
|
|
bottle do
|
|
sha256 "15f6824f01f91295ba8d35b3020cae12134bb948dc9fde573ac178ce4fda62c4" => :mojave
|
|
sha256 "612a100c68c820fd67e05c39f5574589a7fb8803d93fc15ae50f1f343ca577a5" => :high_sierra
|
|
sha256 "ce5e9408786fee4e48bc2b7413de7e62c0c6f192f754a1403044687c1767f89d" => :sierra
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "gawk" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gdbm"
|
|
depends_on "gnutls"
|
|
depends_on "libffi"
|
|
depends_on "libsigsegv"
|
|
depends_on "libtool"
|
|
depends_on "readline"
|
|
|
|
def install
|
|
# Fix build failure "Symbol not found: _clock_gettime"
|
|
if MacOS.version == "10.11" && MacOS::Xcode.installed? && MacOS::Xcode.version >= "8.0"
|
|
ENV["ac_cv_search_clock_gettime"] = "no"
|
|
end
|
|
|
|
args = %W[
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--prefix=#{prefix}
|
|
--with-lispdir=#{elisp}
|
|
--disable-gtk
|
|
--with-readline=#{Formula["readline"].opt_lib}
|
|
--without-tcl
|
|
--without-tk
|
|
--without-x
|
|
]
|
|
|
|
system "autoreconf", "-ivf"
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
path = testpath/"test.gst"
|
|
path.write "0 to: 9 do: [ :n | n display ]\n"
|
|
|
|
assert_match "0123456789", shell_output("#{bin}/gst #{path}")
|
|
end
|
|
end
|