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-12-27 23:45:29 +00:00
|
|
|
homepage "http://jmvdveer.home.xs4all.nl/algol.html"
|
|
|
|
url "http://jmvdveer.home.xs4all.nl/algol68g-2.8.2.tar.gz"
|
|
|
|
sha256 "bf0416b296e4935908a39b12688822d0b017d3dbb74cb4dc0ab2a15184c9ddb1"
|
2009-11-17 01:46:47 +00:00
|
|
|
|
2015-05-31 07:05:00 +00:00
|
|
|
bottle do
|
2015-12-28 18:42:05 +00:00
|
|
|
sha256 "fdc60030a0c5ca5787a8bc88e9f365f4c9ab9b9a792ab058a9792b3f539674ea" => :el_capitan
|
|
|
|
sha256 "14dc332e1aa14ad318b6a5878fca573360f54bc1ef3adef87ac3e739974ac3fc" => :yosemite
|
|
|
|
sha256 "7ebe13640eb6cab2163f37aa013ddf3adf94c887160940deacb1b30bc15c1f51" => :mavericks
|
2015-05-31 07:05:00 +00:00
|
|
|
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
|