homebrew-core/Formula/clojure.rb
Alex Miller aec515530a
clojure 1.10.0.414
Closes #36964.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
2019-02-15 00:42:56 +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.414.tar.gz"
sha256 "b77aafd7aab9c10d1afc5421e9c9b7a0dd95909a1f3acb56a7621053eea6bb44"
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