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

checksums           rmd160  74b7fccc6d27a3db3b2d70fa912e191b5537b179 \
                    sha256  f17f66fec97dacca67ac9585701d2d079cfc80539fe6e8160c201c4e55f67507 \
                    size    194584

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