2009-11-17 01:46:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Algol68g < Formula
|
2009-11-17 01:46:47 +00:00
|
|
|
homepage 'http://www.xs4all.nl/~jmvdveer/algol.html'
|
2013-10-19 23:28:39 +00:00
|
|
|
url 'http://jmvdveer.home.xs4all.nl/algol68g-2.8.tar.gz'
|
|
|
|
sha1 '46b43b8db53e2a8c02e218ca9c81cf5e6ce924fd'
|
2009-11-17 01:46:47 +00:00
|
|
|
|
2012-03-04 04:22:59 +00:00
|
|
|
depends_on 'gsl' => :optional
|
|
|
|
|
2009-11-17 01:46:47 +00:00
|
|
|
def install
|
2012-03-04 04:22:59 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}"
|
2009-11-17 01:46:47 +00:00
|
|
|
system "make install"
|
|
|
|
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
|