homebrew-core/Formula/clojure.rb
2018-04-14 05:45:22 -07:00

23 lines
574 B
Ruby

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