From 70711a08904010b6f6b1f4f05408dcc08144b008 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Sun, 27 May 2018 02:52:33 -0400 Subject: [PATCH] abcl: require Java 8 specifically (#28312) --- Formula/abcl.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Formula/abcl.rb b/Formula/abcl.rb index a3e8a55fb8..b77a68d996 100644 --- a/Formula/abcl.rb +++ b/Formula/abcl.rb @@ -3,6 +3,7 @@ class Abcl < Formula homepage "https://abcl.org/" url "https://abcl.org/releases/1.5.0/abcl-src-1.5.0.tar.gz" sha256 "920ee7d634a7f4ceca0a469d431d3611a321c566814d5ddb92d75950c0631bc2" + revision 1 head "https://abcl.org/svn/trunk/abcl/", :using => :svn bottle do @@ -14,15 +15,19 @@ class Abcl < Formula end depends_on "ant" - depends_on :java => "1.5+" + depends_on :java => "1.8" depends_on "rlwrap" => :recommended def install + cmd = Language::Java.java_home_cmd("1.8") + ENV["JAVA_HOME"] = Utils.popen_read(cmd).chomp + system "ant" libexec.install "dist/abcl.jar", "dist/abcl-contrib.jar" (bin/"abcl").write <<~EOS #!/bin/sh + export JAVA_HOME=$(#{cmd}) #{"rlwrap " if build.with?("rlwrap")}java -cp #{libexec}/abcl.jar:"$CLASSPATH" org.armedbear.lisp.Main "$@" EOS end