# -*- 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                   github 1.0

github.setup                flightaware tclreadline 2.3.8 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from         tarball
revision                    0
categories                  devel
platforms                   darwin
maintainers                 {dons.net.au:darius @DanielO}
license                     BSD

description                 An interactive readline for tcl shells.

long_description            The tclreadline package makes the GNU Readline \
                            library available for interactive tcl shells. \
                            This includes history expansion and file/command \
                            completion. Command completion for all tcl/tk \
                            commands is provided and commmand completers for \
                            user defined commands can be easily added. \
                            tclreadline can also be used for tcl scripts \
                            which want to use a shell like input interface. \
                            In this case the ::tclreadline::readline read \
                            command has to be called explicitly.

checksums                   sha1    cfe7e8b6f55ad16e2ee9487133ebe387c7e08278 \
                            rmd160  630963cc272bac192d42473f4d472c7d050ad306 \
                            sha256  bf9a1fe60eb8ac2aff42d42f878dab74ec0ecd41129fe769e07f5bb9da2ce45e \
                            size    393212

depends_lib                 port:readline \
                            port:tcl

use_autoreconf              yes

configure.args-append       --with-tcl=${prefix}/lib/ \
                            --with-tk=no \
                            --with-readline-includes=${prefix}/include/readline \
                            --enable-tclstub
