-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3aa5ce
commit 7caeefd
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
class ClojureAT11121446 < Formula | ||
desc "The Clojure Programming Language" | ||
homepage "https://clojure.org" | ||
url "https://github.com/clojure/brew-install/releases/download/1.11.2.1446/clojure-tools-1.11.2.1446.tar.gz" | ||
mirror "https://download.clojure.org/install/clojure-tools-1.11.2.1446.tar.gz" | ||
sha256 "aa7effb0fc950df8d93cb796c655010658c05bf77c702c3a9449b7fdd792ef71" | ||
license "EPL-1.0" | ||
|
||
depends_on "rlwrap" | ||
|
||
uses_from_macos "ruby" => :build | ||
|
||
def install | ||
system "./install.sh", prefix | ||
end | ||
|
||
test do | ||
ENV["TERM"] = "xterm" | ||
system("#{bin}/clj -M -e nil") | ||
%w[clojure clj].each do |clj| | ||
assert_equal "2", shell_output("#{bin}/#{clj} -M -e \"(+ 1 1)\"").strip | ||
end | ||
end | ||
end |