homebrew-core/Formula/janet.rb
Rui Chen e25d139190
janet 1.6.0
Closes #48202.

Signed-off-by: Thierry Moisan <thierry.moisan@gmail.com>
2019-12-22 19:46:09 -05:00

29 lines
945 B
Ruby

class Janet < Formula
desc "Dynamic language and bytecode vm"
homepage "https://janet-lang.org"
url "https://github.com/janet-lang/janet/archive/v1.6.0.tar.gz"
sha256 "9faa4ed79c9281c4f9c0a005588ef0452a0b77217cd297fc0a73a5fda6d14e5d"
head "https://github.com/janet-lang/janet.git"
bottle do
cellar :any
sha256 "ef2b4b393af53a8b1ec2b48bc3934f4464fc77cad2ac60af50195f24f723af18" => :catalina
sha256 "1e2652c44c280cd15fcd09222fb8b64b2cee66d7d441b06f4df920709fc904c9" => :mojave
sha256 "e41086c2f6772e4d9441df4f6a3292c516e59c7ac2ffa7e76d8e511b548433dd" => :high_sierra
end
depends_on "meson" => :build
depends_on "ninja" => :build
def install
system "meson", "setup", "build", "--buildtype=release", "--prefix=#{prefix}"
cd "build" do
system "ninja"
system "ninja", "install"
end
end
test do
assert_equal "12", shell_output("#{bin}/janet -e '(print (+ 5 7))'").strip
end
end