# -*- 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

epoch               1
perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Perl-Critic 1.156 ../../authors/id/P/PE/PETDANCE
revision            0
license             {Artistic-1 GPL}
maintainers         {khindenburg @kurthindenburg} openmaintainer

description         Perl::Critic - Critique Perl source code for best-practices.
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  ca01bc90a983f6fa9d8bcbff80cced66018bf087 \
                    sha256  572a7c8758ba1c0ab6daf0bd40297c4f0dcf1516f084522df2c2bf04d525e232 \
                    size    663818

if {${perl5.major} != ""} {
depends_lib-append  port:p${perl5.major}-b-keywords \
                    port:p${perl5.major}-config-tiny \
                    port:p${perl5.major}-exception-class \
                    port:p${perl5.major}-list-someutils \
                    port:p${perl5.major}-module-pluggable \
                    port:p${perl5.major}-ppi \
                    port:p${perl5.major}-ppix-quotelike \
                    port:p${perl5.major}-ppix-regexp \
                    port:p${perl5.major}-ppix-utils \
                    port:p${perl5.major}-string-format \
                    port:p${perl5.major}-version \
                    port:p${perl5.major}-file-which \
                    port:p${perl5.major}-perl-tidy \
                    port:p${perl5.major}-pod-spell \
                    port:p${perl5.major}-readonly \
                    port:p${perl5.major}-readonly-xs

# use our p5-pod-parser on perl5.32+ where Pod::Parser and friends are no longer in core
    if {${perl5.major} > 5.30} {
        depends_lib-append \
                    port:p${perl5.major}-pod-parser
    }

perl5.use_module_build
}
