# -*- 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         Tcl-pTk 1.11 ../../authors/id/C/CA/CAC
revision            0

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

supported_archs     noarch

description         Tcl::pTk - Interface to Tcl/Tk with Perl/Tk compatible syntax

long_description    Tcl::pTk interfaces perl to an existing Tcl/Tk \
                    installation on your computer. It has fully perl/tk \
                    compatible syntax for running existing perl/tk scripts, \
                    as well as direct-tcl syntax for using any other Tcl/Tk \
                    features. \
                    \n\nUsing this module an interpreter object is created, \
                    which then provides access to all the installed Tcl \
                    libraries (Tk, Tix, BWidgets, BLT, etc) and existing \
                    features (for example native-looking widgets using the \
                    Tile package).\n

checksums           rmd160  4c6117cc54010029cb3c60f6ca08c1bdd3617890 \
                    sha256  d393f12b1ccdec8f196cddbb5891d9484c79aa94105a6376d9ff9c460d820cdd \
                    size    551598

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-test-deep

    depends_lib-append \
                    port:p${perl5.major}-class-isa \
                    port:p${perl5.major}-sub-name \
                    port:p${perl5.major}-tcl \
                    port:p${perl5.major}-time-hires \
                    port:BWidget \
                    port:tix \
                    port:tk \
                    port:tkimg \
                    port:tklib \
                    port:tktable

    # Bypass the test-for-tk since it doesn't work from MacPorts
    # (Perl never gets any output from tclsh for some reason)
    configure.args-append \
                    --no-test-for-tk
}