homebrew-core/Formula/clojure.rb
Alex Miller 17d4488acf
clojure 1.10.0.442
Closes #37975.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-03-18 17:46:43 +08: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.0.442.tar.gz"
sha256 "9c3298d9c25de1d21c1f8aae866ff28e73d3478bdaaa8df00386ef3b5a9cf790"
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