# -*- 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         Tk-TableMatrix 1.29 ../../authors/id/C/CA/CAC
revision            0

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

description         Tk::TableMatrix - port of the Tcl/Tk Tktable Widget to Perl/Tk

long_description    \
    Tk::TableMatrix is a table/matrix widget extension to Perl/Tk \
    for displaying data in a table (or spreadsheet) format. \
    The basic features of the widget are: \
    \n\
     * multi-line cells \n\
     * support for embedded windows (one per cell) \n\
     * row & column spanning \n\
     * variable width columns / height rows (interactively resizable) \n\
     * row and column titles \n\
     * multiple data sources ((perl hash|| perl callback) &| internal caching) \n\
     * supports standard Tk reliefs, fonts, colors, etc. \n\
     * x/y scrollbar support \n\
     * 'tag' styles per row, column or cell to change visual appearance \n\
     * in-cell editing - returns value back to data source \n\
     * support for disabled (read-only) tables or cells (via tags) \n\
     * multiple selection modes, with "active" cell \n\
     * multiple drawing modes to get optimal performance for larger tables \n\
     * optional 'flashes' when things update \n\
     * cell validation support

checksums           rmd160  e33ff803dc83b7545cb46d85266c1773deb873b6 \
                    sha256  d31708b8bbfddce9034540522b2e4ec58e70f2eb5b23ac593d2421ea90dbd0d6 \
                    size    425413

if {${perl5.major} ne ""} {
    depends_lib-append \
                    port:p${perl5.major}-tk

    configure.args-append \
                    X11=${prefix}

    # avoid conflict with Perl/Tk (as done by Debian)
    post-destroot {
        delete ${destroot}${perl5.archlib}/Tk/pTk
        delete ${destroot}${perl5.archlib}/auto/Tk/pTk
    }
}
