2013-11-15 20:28:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class GnuApl < Formula
|
|
|
|
homepage 'http://www.gnu.org/software/apl/'
|
2014-01-14 02:12:08 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/apl/apl-1.2.tar.gz'
|
|
|
|
mirror 'http://ftp.gnu.org/gnu/apl/apl-1.2.tar.gz'
|
|
|
|
sha1 'ea037a7edc4da90bd8eecfe7d1d9f904e993e64f'
|
2013-11-15 20:28:42 +00:00
|
|
|
|
|
|
|
# GNU Readline is required; libedit won't work.
|
|
|
|
depends_on 'readline'
|
|
|
|
|
|
|
|
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
|