# -*- 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.26
perl5.setup         Apache-LogFormat-Compiler 0.35

platforms           darwin
maintainers         nomaintainer
license             {Artistic-1 GPL}

supported_archs     noarch

description         Compile a log format string to perl-code

long_description    ${description}

checksums           rmd160  978304b4c21a066199e0c45464f3401eefab4863 \
                    sha256  1654c0000a042a8af052616e30b91c1f0b95a720c8048b59168a8bd99b07271a

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
}