# -*- 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.require_variant   yes
perl5.conflict_variants yes
perl5.branches          5.28 5.30 5.32 5.34
perl5.default_branch    5.34
perl5.create_variants   ${perl5.branches}

name                ack
perl5.setup         ack v3.10.0 ../../authors/id/P/PE/PETDANCE
revision            0
categories          devel
license             Artistic-2
maintainers         nomaintainer
homepage            https://beyondgrep.com/
description         ack - grep-like text finder
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  dcc116f7370155a802290f1b434bd5920a6f6796 \
                    sha256  65e83cfb38a71fca725e9a14a8201ee871e629fc6b10231e1303dd3501ba563a \
                    size    280253

depends_build-append \
                    port:p${perl5.major}-yaml-pp

depends_lib-append \
                    port:p${perl5.major}-file-next \
                    port:p${perl5.major}-getopt-long \
                    port:p${perl5.major}-text-parsewords \
                    port:p${perl5.major}-version

perl5.link_binaries_suffix

post-destroot {
    ln -s ${prefix}/share/perl${perl5.major}/man/man1/ack.1pm ${destroot}${prefix}/share/man/man1/
}
