# -*- 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         CGI-Compile 0.27
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         CGI::Compile - Compile .cgi scripts to a code reference like ModPerl::Registry
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  60098414dc08a45b3601b855e137932cc41735f0 \
                    sha256  f6b0bae840260ee0b45a1a5be36e25b07ca91eedda264a83ce4f41483cb88ddd \
                    size    23225

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-capture-tiny \
                    port:p${perl5.major}-cgi \
                    port:p${perl5.major}-filter \
                    port:p${perl5.major}-module-build-tiny \
                    port:p${perl5.major}-sub-identify \
                    port:p${perl5.major}-test-nowarnings \
                    port:p${perl5.major}-test-requires \
                    port:p${perl5.major}-test-simple \
                    port:p${perl5.major}-try-tiny

    depends_lib-append \
                    port:p${perl5.major}-file-pushd \
                    port:p${perl5.major}-sub-name

    perl5.use_module_build
}