# -*- 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         Module-Build-XSUtil 0.19
license             {Artistic-1 GPL}
maintainers         nomaintainer
supported_archs     noarch

description         A Module::Build class for building XS modules

long_description    ${description}

platforms           darwin

checksums           rmd160  cd916c74d1d9b39ed15da20e78d6d997d7fc0c54 \
                    sha256  9063b3c346edeb422807ffe49ffb23038c4f900d4a77b845ce4b53d97bf29400 \
                    size    15276

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-capture-tiny \
                    port:p${perl5.major}-cwd-guard \
                    port:p${perl5.major}-file-copy-recursive-reduced

    depends_lib-append \
                    port:p${perl5.major}-devel-checkcompiler
    
    perl5.use_module_build
}