homebrew-core/Formula/clojure.rb
2019-11-04 18:04:41 -05: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.483.tar.gz"
sha256 "0962e4e9ee05a0cc92f10eb56e6194d238f0b65b3cf0c1491d02ae98e3eca183"
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