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.309.tar.gz"
|
|
sha256 "6f9f616bab384d36c884dd81860962511d2bc36095f9b379f94716e157c2f820"
|
|
|
|
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
|