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

checksums           rmd160  d1c3773b78e83ffb2e8ef9999fd568b664aeebfc \
                    sha256  3b06f57eba4d27934a2fd37e7b457ddbe41ccd5dcebc02a81002fd10c96071a4 \
                    size    165372

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 -
    }
}
