homebrew-core/Formula/nqp.rb

29 lines
967 B
Ruby
Raw Normal View History

2018-12-04 17:52:04 +00:00
class Nqp < Formula
desc "Lightweight Perl 6-like environment for virtual machines"
homepage "https://github.com/perl6/nqp"
2019-03-11 08:41:03 +00:00
url "https://rakudo.perl6.org/downloads/nqp/nqp-2019.03.tar.gz"
sha256 "03ddced47583189a5ff316c05350f6f39c15f75ce44d38b409a4bb1128857fa0"
2018-12-04 17:52:04 +00:00
2019-01-04 07:02:49 +00:00
bottle do
2019-03-11 09:27:38 +00:00
sha256 "c7747356d849dd27f1802875cb2383223d1d96fad1e4f100be2946a5edf66a3d" => :mojave
sha256 "0dac855e4e76e14d7e3d01eaaf72ed72d63e54a716c3973a4430d6a7a1aac219" => :high_sierra
sha256 "f26043b2ccce1c98b82d733c57ccfa06049e44ee5df42829d54bc789668371d9" => :sierra
2019-01-04 07:02:49 +00:00
end
2018-12-04 17:52:04 +00:00
depends_on "moarvm"
def install
system "perl", "Configure.pl",
"--backends=moar",
"--prefix=#{prefix}",
"--with-moar=#{Formula["moarvm"].bin}/moar"
system "make"
system "make", "install"
end
test do
out = shell_output("#{bin}/nqp -e 'for (0,1,2,3,4,5,6,7,8,9) { print($_) }'")
assert_equal "0123456789", out
end
end