homebrew-core/Formula/clojure.rb
Alex Miller 06d25beeb8 clojure 1.10.0.403
Closes #35199.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2018-12-18 08:14:44 +01: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.403.tar.gz"
sha256 "8c548fd7fe1e0463412f4e575249867294a2bcf31098f21bd0d8e19037685e4b"
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