c6b8e53667
Closes #32106. Signed-off-by: Chongyu Zhu <i@lembacon.com>
23 lines
574 B
Ruby
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.394.tar.gz"
|
|
sha256 "658dcc1cb34797184dc8d437a3cdcbbaaad67435ef86f5b5b85dbbd075fc378e"
|
|
|
|
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
|