# -*- 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        rakudo rakudo 2016.10
description         Perl6 compiler 
long_description    Rakudo is a compiler for the Perl 6 language (version 6.c) \
                    Rakudo is built using NQP (Not Quite Perl 6), which in \
                    turn is targeting the Moar virtual machine. See \
                    https://perl6.org/ for more information.
maintainers         coleda.com:will mojca openmaintainer
categories          lang perl
license             Artistic-2
platforms           darwin
homepage            http://rakudo.org/
# master_sites      http://rakudo.org/downloads/rakudo/

checksums           rmd160  e444671bc79309b75c9908c8287825370aa1ad34 \
                    sha256  4bd160f4ccc0796534714724d27c05aead1c7575bf3ffe52cb182062f1e497d2

depends_build       port:perl5

depends_lib         port:moarvm \
                    port:nqp

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

# https://github.com/MoarVM/MoarVM/issues/414
# it's also possible that i386 doesn't build at all
universal_variant   no
# Unsupported by Configure.pl
# configure.universal_args-delete --disable-dependency-tracking

test.run            yes
# test.target       test spectest
# other targets: localtest stresstest ...

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