# -*- 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         Error 0.17030
revision            0
license             {Artistic-1 GPL}
maintainers         {khindenburg @kurthindenburg} openmaintainer
description         Error/exception handling in an OO-ish way
long_description    The Error package provides two interfaces.  Firstly \
                    Error provides a procedural interface to exception \
                    handling. Secondly Error is a  base class for \
                    errors/exeptions that can either be thrown, for \
                    subsequent catch, or can simply be recorded.

platforms           {darwin any}
supported_archs     noarch

checksums           rmd160  667b4023a837df75966a4e749f553e2cf5447509 \
                    sha256  34d382276c0fb0d6b38355b94c96a30b12d834d5662eb53f088ee25e3e712924 \
                    size    33488

if {${perl5.major} != ""} {
    perl5.use_module_build

    post-destroot {
       set docdir ${prefix}/share/doc/${subport}
       xinstall -d ${destroot}${docdir}
       xinstall -m 644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}

       set examplesdir ${prefix}/share/examples/${subport}
       xinstall -d ${destroot}[file dirname ${examplesdir}]
       copy ${worksrcpath}/examples ${destroot}${examplesdir}
    }
}
