homebrew-core/Formula/gnu-apl.rb
Hannu Hartikainen d42affe64b gnu-apl: test interpreter, not version
Closes Homebrew/homebrew#35297.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-12-28 09:26:31 +00:00

32 lines
872 B
Ruby

require "formula"
class GnuApl < Formula
homepage "http://www.gnu.org/software/apl/"
url "http://ftpmirror.gnu.org/apl/apl-1.4.tar.gz"
mirror "http://ftp.gnu.org/gnu/apl/apl-1.4.tar.gz"
sha1 "ee5dab7f7c0f5d79c435a20f3ddcafbda85ac22e"
bottle do
sha1 "e067c7741c9f7e174f0a5f06d99e59fe5b6e930b" => :mavericks
end
# GNU Readline is required; libedit won't work.
depends_on "readline"
depends_on :macos => :mavericks
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"hello.apl").write <<-EOS.undent
'Hello world'
)OFF
EOS
assert_match /Hello world/, shell_output("#{bin}/apl -s -f hello.apl")
end
end