moarvm 2019.03

This commit is contained in:
Andy Weidenbaum 2019-03-11 21:40:54 +13:00 committed by Chongyu Zhu
parent 4b0e0d4f2b
commit d1035b0e12
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -1,8 +1,8 @@
class Moarvm < Formula
desc "Virtual machine for NQP and Rakudo Perl 6"
homepage "https://moarvm.org"
url "https://moarvm.org/releases/MoarVM-2018.12.tar.gz"
sha256 "e433a2a56953fca16ed8eaf9a597f25a7e1556436888609429f38529c241693b"
url "https://moarvm.org/releases/MoarVM-2019.03.tar.gz"
sha256 "24b00e5228894fa6f70e9caa73114e5c6ec3686b6305e6e463807a93f70ffc04"
bottle do
sha256 "f4a1e65148f4f0f32713a3090b9c12db01133844bac50dd42641183561242cb9" => :mojave
@ -15,9 +15,9 @@ class Moarvm < Formula
depends_on "libtommath"
depends_on "libuv"
resource("nqp-2018.12") do
url "https://rakudo.perl6.org/downloads/nqp/nqp-2018.12.tar.gz"
sha256 "219db519ad5c1848e4528a56a506dd74b0839ca1d910788411f3bfedf5045d36"
resource("nqp-2019.03") do
url "https://rakudo.perl6.org/downloads/nqp/nqp-2019.03.tar.gz"
sha256 "03ddced47583189a5ff316c05350f6f39c15f75ce44d38b409a4bb1128857fa0"
end
def install
@ -38,7 +38,7 @@ class Moarvm < Formula
end
test do
testpath.install resource("nqp-2018.12")
testpath.install resource("nqp-2019.03")
out = Dir.chdir("src/vm/moar/stage0") do
shell_output("#{bin}/moar nqp.moarvm -e 'for (0,1,2,3,4,5,6,7,8,9) { print($_) }'")
end