# -*- 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         XML-SAX-Expat 0.51
revision            1
maintainers         {khindenburg @kurthindenburg} openmaintainer
license             {Artistic-1 GPL}
description         SAX2 Driver for Expat (XML::Parser)
long_description    This is an implementation of a SAX2 driver \
                    sitting on top of Expat (XML::Parser)

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  3c0a5975bcd3eed1a588edb7dce8f724d1e1bc6d \
                    sha256  4c016213d0ce7db2c494e30086b59917b302db8c292dcd21f39deebd9780c83f

if {${perl5.major} != ""} {
    depends_lib-append \
                    port:p${perl5.major}-xml-parser \
                    port:p${perl5.major}-xml-sax \
                    port:p${perl5.major}-xml-namespacesupport

    post-activate {
        system "${perl5.bin} -I${perl5.lib} -MXML::SAX -e \"XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()\""
    }
}
