2012-01-19 14:27:15 +00:00
|
|
|
class Abcl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Armed Bear Common Lisp: a full implementation of Common Lisp"
|
2014-05-18 22:50:52 +00:00
|
|
|
homepage "http://abcl.org"
|
2017-06-11 15:09:29 +00:00
|
|
|
url "http://abcl.org/releases/1.5.0/abcl-src-1.5.0.tar.gz"
|
|
|
|
sha256 "920ee7d634a7f4ceca0a469d431d3611a321c566814d5ddb92d75950c0631bc2"
|
2016-09-24 15:45:48 +00:00
|
|
|
head "http://abcl.org/svn/trunk/abcl/", :using => :svn
|
2015-05-30 22:50:01 +00:00
|
|
|
|
2016-02-26 23:36:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-06-11 15:15:37 +00:00
|
|
|
sha256 "e66f3785e8d3c018346e8e5b32cacfbcab1be4cd06d601745967037329f5bd80" => :sierra
|
|
|
|
sha256 "9051f4c2c28fb5329d464fc491bd927cc9119ee3ff4d985d806fc51ce26c1ae2" => :el_capitan
|
|
|
|
sha256 "3e727adfe30f0cb60d5ab05c6537db7b4670b519376c4d547e9ca8092c581320" => :yosemite
|
2016-02-26 23:36:27 +00:00
|
|
|
end
|
|
|
|
|
2016-02-26 23:19:12 +00:00
|
|
|
depends_on "ant"
|
2016-09-24 15:45:48 +00:00
|
|
|
depends_on :java => "1.5+"
|
2016-02-26 23:19:12 +00:00
|
|
|
depends_on "rlwrap" => :recommended
|
2012-01-19 14:27:15 +00:00
|
|
|
|
|
|
|
def install
|
2016-02-26 23:19:12 +00:00
|
|
|
ENV.java_cache
|
|
|
|
system "ant"
|
|
|
|
|
|
|
|
libexec.install "dist/abcl.jar", "dist/abcl-contrib.jar"
|
|
|
|
(bin/"abcl").write <<-EOS.undent
|
2012-01-19 14:27:15 +00:00
|
|
|
#!/bin/sh
|
2016-02-26 23:19:12 +00:00
|
|
|
#{"rlwrap " if build.with?("rlwrap")}java -cp #{libexec}/abcl.jar:"$CLASSPATH" org.armedbear.lisp.Main "$@"
|
2012-01-19 14:27:15 +00:00
|
|
|
EOS
|
|
|
|
end
|
2015-02-22 20:15:30 +00:00
|
|
|
|
|
|
|
test do
|
2016-02-26 23:19:12 +00:00
|
|
|
(testpath/"test.lisp").write "(print \"Homebrew\")\n(quit)"
|
|
|
|
assert_match /"Homebrew"$/, shell_output("#{bin}/abcl --load test.lisp").strip
|
2015-02-22 20:15:30 +00:00
|
|
|
end
|
2012-01-19 14:27:15 +00:00
|
|
|
end
|