janet 0.6.0 (new formula)
Closes #40839. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
parent
d613e3d948
commit
7cdb4a0f5d
1 changed files with 22 additions and 0 deletions
22
Formula/janet.rb
Normal file
22
Formula/janet.rb
Normal 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
|
Loading…
Reference in a new issue