homebrew-core/Formula/clojure.rb
2018-02-24 23:56:05 -08:00

25 lines
628 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.348.tar.gz"
sha256 "08392bcfdb926f369bea26970ab5c1b62c512490609966527668fb9db6be9b5a"
bottle :unneeded
depends_on :java => "1.8+"
depends_on "rlwrap"
def install
system "./install.sh", prefix
man1.install "clojure.1"
man1.install "clj.1"
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