# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=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         File-RsyncP 0.76 ../../authors/id/C/CB/CBARRATT
platforms           darwin
license             GPL-2+
maintainers         nomaintainer
description         A Perl implementation of an Rsync client.
long_description    ${description}

use_parallel_build  no

checksums           rmd160  7a01ca78f58df4753ed0c958e1204bbfae070ca9 \
                    sha256  1b23d3d4c08b9dd3eadfc6a3f38dfd21b72669f0052e7ad18e53350ef47c9e16 \
                    size    167744

if {${perl5.major} != ""} {
    patchfiles      patch-FileList-Makefile.PL.diff

    post-patch {
        reinplace "s|@@MP_CC@@|${configure.cc}|" ${worksrcpath}/FileList/Makefile.PL
    }
}

livecheck.type      regex
livecheck.url       https://cpan.metacpan.org/authors/id/C/CB/CBARRATT/
livecheck.regex     "${perl5.module}-(\\d+(?:\\.\\d+)+)"
