2011-03-10 05:11:03 +00:00
|
|
|
class Algol68g < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Algol 68 compiler-interpreter"
|
2015-07-10 20:54:51 +00:00
|
|
|
homepage "https://www.xs4all.nl/~jmvdveer/algol.html"
|
2015-05-31 06:54:57 +00:00
|
|
|
url "http://jmvdveer.home.xs4all.nl/algol68/algol68g-2.8.1.tar.gz"
|
|
|
|
sha256 "bd499f90576a8d86008316f55e026e08abe2c9bda930e7a00cd0bec5b2b2dc44"
|
2009-11-17 01:46:47 +00:00
|
|
|
|
2015-05-31 07:05:00 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "743088c848c897a040700199d9d21ba4e4b418f9f4510b8d29c36bb013732cc6" => :yosemite
|
|
|
|
sha256 "6e5187b65256def5155d53c259fd37d950d96ea97d4d9a4db3182c02e9df02c4" => :mavericks
|
|
|
|
sha256 "d1467497abb2a0c0bc7c3f78aadaf811052984d79177f977165870064270b0bb" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-05-31 06:54:57 +00:00
|
|
|
depends_on "gsl" => :optional
|
2012-03-04 04:22:59 +00:00
|
|
|
|
2009-11-17 01:46:47 +00:00
|
|
|
def install
|
2012-03-04 04:22:59 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2015-05-31 06:54:57 +00:00
|
|
|
system "make", "install"
|
2009-11-17 01:46:47 +00:00
|
|
|
end
|
2012-03-04 03:54:50 +00:00
|
|
|
|
2014-02-05 20:31:07 +00:00
|
|
|
test do
|
|
|
|
path = testpath/"hello.alg"
|
|
|
|
path.write <<-EOS.undent
|
|
|
|
print("Hello World")
|
|
|
|
EOS
|
|
|
|
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "Hello World", shell_output("#{bin}/a68g #{path}").strip
|
2012-03-04 03:54:50 +00:00
|
|
|
end
|
2009-11-17 01:46:47 +00:00
|
|
|
end
|