# -*- 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 5.28 5.30
perl5.setup         Dist-Zilla-Plugin-ModuleBuildTiny-Fallback 0.025
license             {Artistic-1 GPL}
maintainers         {devans @dbevans} openmaintainer
description         Dist::Zilla::Plugin::ModuleBuildTiny::Fallback - Generate a Build.PL \
                    that uses Module::Build::Tiny, falling back to Module::Build as needed
long_description    ${description}

platforms           darwin

checksums           rmd160  1701f015804579b40c55a4d528a6534ffeb34845 \
                    sha256  16996afe71413024c0c79d2241e027aa6d3fa5494d28d45834733306f773df75 \
                    size    36932

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-dist-zilla \
                    port:p${perl5.major}-file-pushd \
                    port:p${perl5.major}-module-build-tiny \
                    port:p${perl5.major}-path-tiny \
                    port:p${perl5.major}-test-deep \
                    port:p${perl5.major}-test-fatal \
                    port:p${perl5.major}-test-needs \
                    port:p${perl5.major}-test-warnings

    depends_lib-append \
                    port:p${perl5.major}-dist-zilla-plugin-modulebuildtiny \
                    port:p${perl5.major}-moose \
                    port:p${perl5.major}-moosex-types \
                    port:p${perl5.major}-namespace-autoclean

    perl5.use_module_build
    supported_archs noarch
}