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"
|
2016-12-20 07:08:47 +00:00
|
|
|
url "http://abcl.org/releases/1.4.0/abcl-src-1.4.0.tar.gz"
|
|
|
|
sha256 "51981aa8749308cb2ac64ca0165e162c24a7198d6d462384812c15126a8f96f8"
|
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
|
2016-12-21 02:22:08 +00:00
|
|
|
sha256 "e3113086b561f7d7012f9f9bf6c4b5a771f175957fda178671dc0f3278439c73" => :sierra
|
|
|
|
sha256 "137500452d385a1f644e47f50e6d053962ae4d179089160c41fdd4b2b6229b1c" => :el_capitan
|
|
|
|
sha256 "c144dff67537d0aa3fb4fffa2df417ac772e8649835fa20d8fe08d6cd34aee41" => :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
|