class Clojure < Formula desc "The Clojure Programming Language" homepage "https://clojure.org" url "https://download.clojure.org/install/clojure-tools-1.10.0.411.tar.gz" sha256 "f0836d56a32f8c76e20d75d442e04ef5c29b023e69d284baaf0ff298b8b17001" bottle :unneeded depends_on :java => "1.8+" depends_on "rlwrap" def install system "./install.sh", prefix end test do ENV["TERM"] = "xterm" system("#{bin}/clj -e nil") %w[clojure clj].each do |clj| assert_equal "2", shell_output("#{bin}/#{clj} -e \"(+ 1 1)\"").strip end end end