homebrew-core/Formula/clojure.rb
Alex Miller 38c3682fe9
clojure 1.10.1.447
Closes #40757.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-06-06 14:56:04 -07:00

23 lines
575 B
Ruby

class Clojure < Formula
desc "The Clojure Programming Language"
homepage "https://clojure.org"
url "https://download.clojure.org/install/clojure-tools-1.10.1.447.tar.gz"
sha256 "0ca99763309d92ed7216dbbb29d448e4056305419f0560737d8c893a1f3d1040"
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