homebrew-core/Formula/planck.rb
2018-02-02 08:43:17 -08:00

36 lines
1.1 KiB
Ruby

class Planck < Formula
desc "Stand-alone ClojureScript REPL"
homepage "http://planck-repl.org/"
url "https://github.com/mfikes/planck/archive/2.11.0.tar.gz"
sha256 "5eb997639d5303c51ab45c7b23c2db7f5a5bafffe5a5b17803521528bef7e92b"
revision 1
head "https://github.com/mfikes/planck.git"
bottle do
cellar :any
sha256 "251737581e344598c0b9138d243899a0e08ae940084388ba3a23474938015b13" => :high_sierra
sha256 "5fbc1bbad070e0b24a4ada2013c629a9fae110d7600411d350324a2a4aa36a67" => :sierra
sha256 "431bcc466939eae736db3f6212b2eb768b4ce18cf80c493a78f116a94758735d" => :el_capitan
end
depends_on "cmake" => :build
depends_on :java => ["1.8", :build]
depends_on "pkg-config" => :build
depends_on "leiningen" => :build
depends_on :xcode => :build
depends_on "libzip"
depends_on "icu4c"
depends_on :macos => :mavericks
def install
cmd = Language::Java.java_home_cmd("1.8")
ENV["JAVA_HOME"] = Utils.popen_read(cmd).chomp
system "./script/build-sandbox"
bin.install "planck-c/build/planck"
end
test do
assert_equal "0", shell_output("#{bin}/planck -e '(- 1 1)'").chomp
end
end