# -*- 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

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Cpanel-JSON-XS 4.40 ../../authors/id/R/RU/RURBAN
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         JSON::XS for Cpanel, fast and correct serialising
long_description    {*}${description}

checksums           rmd160  31840e5f4bd8b5e24a309fcecb1a67fcd1084d8e \
                    sha256  785473f07673b197e1c29964e9445ed969ee0b4b2adf51d7bebec6887cd3514c \
                    size    261420

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-json \
                    port:p${perl5.major}-time-piece

    # requires Pod::Text provided by podlators distribution
    depends_lib-append \
                    port:p${perl5.major}-encode \
                    port:p${perl5.major}-podlators
}

livecheck.type      regex
livecheck.url       https://cpan.metacpan.org/authors/id/R/RU/RURBAN
livecheck.regex     "${perl5.module}-(\\d+(?:\\.\\d+)*)"
