07dc2b3c99
Closes Homebrew/homebrew#41553. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
28 lines
885 B
Ruby
28 lines
885 B
Ruby
class Algol68g < Formula
|
|
desc "Algol 68 compiler-interpreter"
|
|
homepage "https://www.xs4all.nl/~jmvdveer/algol.html"
|
|
url "http://jmvdveer.home.xs4all.nl/algol68/algol68g-2.8.1.tar.gz"
|
|
sha256 "bd499f90576a8d86008316f55e026e08abe2c9bda930e7a00cd0bec5b2b2dc44"
|
|
|
|
bottle do
|
|
sha256 "743088c848c897a040700199d9d21ba4e4b418f9f4510b8d29c36bb013732cc6" => :yosemite
|
|
sha256 "6e5187b65256def5155d53c259fd37d950d96ea97d4d9a4db3182c02e9df02c4" => :mavericks
|
|
sha256 "d1467497abb2a0c0bc7c3f78aadaf811052984d79177f977165870064270b0bb" => :mountain_lion
|
|
end
|
|
|
|
depends_on "gsl" => :optional
|
|
|
|
def install
|
|
system "./configure", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
path = testpath/"hello.alg"
|
|
path.write <<-EOS.undent
|
|
print("Hello World")
|
|
EOS
|
|
|
|
assert_equal "Hello World", shell_output("#{bin}/a68g #{path}").strip
|
|
end
|
|
end
|