homebrew-core/Formula/algol68g.rb

24 lines
527 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Algol68g < Formula
homepage 'http://www.xs4all.nl/~jmvdveer/algol.html'
url 'http://jmvdveer.home.xs4all.nl/algol68g-2.8.tar.gz'
sha1 '46b43b8db53e2a8c02e218ca9c81cf5e6ce924fd'
2012-03-04 04:22:59 +00:00
depends_on 'gsl' => :optional
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