# -*- 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         Tkx 1.10 ../../authors/id/C/CA/CAC
revision            0

platforms           {darwin any}
maintainers         {@chrstphrchvz gmx.us:chrischavez} openmaintainer
license             {Artistic-1 GPL}
supported_archs     noarch

description         Yet another Tk interface
long_description    {*}${description}

checksums           rmd160  5d80d855ece0ce6ed2beb6caeecafe8e14abd247 \
                    sha256  6a437b8f99a4f25b640e1fc30c0d69c308abe4831fb9b5a1eedcfdbb821a0a94 \
                    size    29021

if {${perl5.major} != ""} {
    # Remove unusable demo script
    # See https://trac.macports.org/ticket/57581
    post-patch {
        reinplace "s|tkx-prove||g" ${worksrcpath}/Makefile.PL
    }

    depends_lib-append \
                    port:BWidget \
                    port:p${perl5.major}-tcl \
                    port:tk

    livecheck.type  none
}
