# -*- 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
# $Id: Portfile 150279 2016-07-14 03:50:28Z devans@macports.org $

# This comment was inserted on 20160713 to force reindexing of
# this port after the default homepage definition in the perl5
# PortGroup was changed to use metacpan.org (r150080).
# Reindexing is necessary for the new definition to take effect.
# This comment may be removed in subsequent updates of this port.

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.22 5.24
perl5.setup         XML-SAX-Expat 0.51
revision            1
maintainers         khindenburg 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
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()\""
    }
}
