# -*- 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         Clone 0.50 ../../authors/id/A/AT/ATOOMIC
revision            0
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         Clone - recursively copy Perl datatypes
long_description    {*}${description}

checksums           rmd160  65ca660660cfe5aaf364452a3a076f4325aa9173 \
                    sha256  f9732a4a857974db30905233589113003301b585b0cecda29a21cfba5bb014f9 \
                    size    165560

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-b-cow
    # unknown xattrs make older BSD tar fail
    # https://trac.macports.org/ticket/73560
    if {${os.platform} eq "darwin" && ${os.major} <= 18} {
        depends_extract port:libarchive
        extract.post_args | ${prefix}/bin/bsdtar -xf -
    }
}
