# -*- 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         Alien-Libxml2 0.20
revision            0
license             {Artistic-1 GPL}
maintainers         {devans @dbevans} openmaintainer
description         Alien::Libxml2 - Find/install the C libxml2 library on your system
long_description    {*}${description}

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  c177736f6a552c5d316d0747e4a803957f4f8531 \
                    sha256  56aae7b339bbeb02f77c5801f57a821be5791b51f43bf7f9062bb3bfa444c328 \
                    size    22129

if {${perl5.major} != ""} {
    depends_build-append \
                    port:pkgconfig \
                    port:p${perl5.major}-extutils-cbuilder \
                    port:p${perl5.major}-test-simple

    depends_lib-append \
                    port:p${perl5.major}-alien-build \
                    port:p${perl5.major}-alien-build-plugin-download-gitlab \
                    port:libxml2

    patchfiles      patch-alienfile.diff

    post-patch {
        reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/alienfile
    }
}
