2014-08-16 16:57:41 +00:00
|
|
|
require "formula"
|
2013-11-15 20:28:42 +00:00
|
|
|
|
|
|
|
class GnuApl < Formula
|
2014-08-16 16:57:41 +00:00
|
|
|
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"
|
2013-11-15 20:28:42 +00:00
|
|
|
|
2014-08-16 17:14:27 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "e067c7741c9f7e174f0a5f06d99e59fe5b6e930b" => :mavericks
|
|
|
|
end
|
|
|
|
|
2013-11-15 20:28:42 +00:00
|
|
|
# GNU Readline is required; libedit won't work.
|
2014-08-16 16:57:41 +00:00
|
|
|
depends_on "readline"
|
2014-03-29 16:49:01 +00:00
|
|
|
depends_on :macos => :mavericks
|
2013-11-15 20:28:42 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2014-01-14 02:12:08 +00:00
|
|
|
ENV["TERM"] = "dumb"
|
2013-11-15 20:28:42 +00:00
|
|
|
system "#{bin}/apl", "--version"
|
|
|
|
end
|
|
|
|
end
|