homebrew-core/Formula/algol68g.rb

29 lines
873 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Algol68g < Formula
desc "Algol 68 compiler-interpreter"
homepage "http://jmvdveer.home.xs4all.nl/algol.html"
url "http://jmvdveer.home.xs4all.nl/algol68g-2.8.2.tar.gz"
sha256 "bf0416b296e4935908a39b12688822d0b017d3dbb74cb4dc0ab2a15184c9ddb1"
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
depends_on "gsl" => :optional
2012-03-04 04:22:59 +00:00
def install
2012-03-04 04:22:59 +00:00
system "./configure", "--prefix=#{prefix}"
system "make", "install"
end
2012-03-04 03:54:50 +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
end