2012-01-19 14:27:15 +00:00
|
|
|
class Abcl < Formula
|
2014-05-18 22:50:52 +00:00
|
|
|
homepage "http://abcl.org"
|
|
|
|
url "http://abcl.org/releases/1.3.1/abcl-bin-1.3.1.tar.gz"
|
|
|
|
sha1 "7abb22130acfbca9d01c413da9c98a6aa078c78b"
|
2012-01-19 14:27:15 +00:00
|
|
|
|
2015-02-22 20:15:30 +00:00
|
|
|
depends_on :java => "1.5+"
|
2014-05-18 22:50:52 +00:00
|
|
|
depends_on "rlwrap"
|
2012-01-19 14:27:15 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-18 22:50:52 +00:00
|
|
|
libexec.install "abcl.jar", "abcl-contrib.jar"
|
2012-01-19 14:27:15 +00:00
|
|
|
(bin+"abcl").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
2014-05-18 22:50:52 +00:00
|
|
|
rlwrap java -jar "#{libexec}/abcl.jar" "$@"
|
2012-01-19 14:27:15 +00:00
|
|
|
EOS
|
|
|
|
end
|
2015-02-22 20:15:30 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match "42", pipe_output("#{bin}/abcl", "(+ 1 1 40)")
|
|
|
|
end
|
2012-01-19 14:27:15 +00:00
|
|
|
end
|