# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem          1.0
PortGroup           github 1.0

github.setup        perl6 nqp 2016.10
description         A lightweight Perl-6 like language for virtual machines
long_description    This is "Not Quite Perl" -- a lightweight Perl 6-like \
                    environment for virtual machines.  The key feature of \
                    NQP is that it's designed to be a very small environment \
                    (as compared with, say, perl6 or Rakudo) and is focused \
                    on being a high-level way to create compilers and \
                    libraries for virtual machines (such as the Parrot \
                    Virtual Machine, the JVM, and MoarVM).

maintainers         coleda.com:will mojca openmaintainer
categories          lang devel
license             Artistic-2
platforms           darwin

checksums           rmd160  1e3c3cae60a4e39aaa6f6b8d2444d913aff4ee8a \
                    sha256  d66905006e74b6d55f7abd3fba051fdf9a2583879bbf3cecaab076c07d39d476

depends_build       port:perl5

# citation:
# NQP can run on three different backends: Parrot, MoarVM and the Java Virtual Machine (JVM).
# Decide on which backends you want it to run, and configure and build it as follows:
# --backends=moar,parrot,jvm
depends_lib         port:moarvm

configure.cmd       ${prefix}/bin/perl Configure.pl
configure.args      --prefix=${prefix} \
                    --backends=moar

# https://github.com/MoarVM/MoarVM/issues/414
universal_variant   no
# Unsupported by Configure.pl
# configure.universal_args-delete --disable-dependency-tracking

test.run            yes

# we need to avoid '-' in version name, else $version-RC1 is considered newer than the actual release
livecheck.regex     {archive/([0-9.]+).tar.gz}