# -*- 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         Apache-LogFormat-Compiler 0.36

platforms           {darwin any}
maintainers         nomaintainer
license             {Artistic-1 GPL}

supported_archs     noarch

description         Compile a log format string to perl-code

long_description    ${description}

checksums           rmd160  707b6994f4c8849cd4c07b420d352bf5ddbba7aa \
                    sha256  94509503ee74ea820183d070c11630ee5bc0fd8c12cb74fae953ed62e4a1ac17 \
                    size    16063

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-http-message \
                    port:p${perl5.major}-module-build-tiny \
                    port:p${perl5.major}-test-mocktime \
                    port:p${perl5.major}-test-requires \
                    port:p${perl5.major}-try-tiny \
                    port:p${perl5.major}-uri

    depends_lib-append \
                    port:p${perl5.major}-posix-strftime-compiler

    perl5.use_module_build
}
