# -*- 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         Catalyst-Authentication-Credential-HTTP 1.018
platforms           {darwin any}
license             {Artistic-1 GPL}
maintainers         fpassera.com:dev openmaintainer
description         HTTP Basic and Digest authentication for Catalyst.
long_description    {*}${description}

checksums           rmd160  3c3d95a0ff1b981e8c6c53b50b650bc3adc406a7 \
                    sha256  6fa1816dee644b0db5ea0cc15c5e711dc2ced2083625abce7096521f1d65a529

supported_archs     noarch

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-http-message \
                    port:p${perl5.major}-module-build-tiny \
                    port:p${perl5.major}-test-exception \
                    port:p${perl5.major}-test-mockobject \
                    port:p${perl5.major}-test-needs

    depends_lib-append \
                    port:p${perl5.major}-catalyst-plugin-authentication \
                    port:p${perl5.major}-catalyst-runtime \
                    port:p${perl5.major}-class-accessor \
                    port:p${perl5.major}-data-uuid \
                    port:p${perl5.major}-string-escape \
                    port:p${perl5.major}-uri

    perl5.use_module_build
}