janet 0.6.0 (new formula)

Closes #40839.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
Jason Staten 2019-06-09 21:03:30 -06:00 committed by FX Coudert
parent d613e3d948
commit 7cdb4a0f5d

22
Formula/janet.rb Normal file
View file

@ -0,0 +1,22 @@
class Janet < Formula
desc "Dynamic language and bytecode vm"
homepage "https://janet-lang.org"
url "https://github.com/janet-lang/janet/archive/v0.6.0.tar.gz"
sha256 "1226240f8ed7f5faafbff6d93e5802c7959c4b40f9212ac6f020d67ef3aa599e"
head "https://github.com/janet-lang/janet.git"
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