# -*- 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
PortGroup               meson   1.0
PortGroup               legacysupport 1.1

# clock_gettime, strndup
legacysupport.newest_darwin_requires_legacy 15

github.setup            tio tio 3.9 v
github.tarball_from     releases
revision                0

categories              comms
installs_libs           no
license                 GPL-2
maintainers             {gmail.com:herby.gillot @herbygillot} \
                        openmaintainer

homepage                https://tio.github.io

description             Simple TTY terminal I/O application
long_description        tio is a simple serial device tool which \
                        features a straightforward command-line \
                        and configuration file interface to easily \
                        connect to serial TTY devices for basic \
                        I/O operations.

checksums               rmd160  d89b874af2b312ae0703673ab20bcf7e67ee313d \
                        sha256  06fe0c22e3e75274643c017928fbc85e86589bc1acd515d92f98eecd4bbab11b \
                        size    3460500

depends_build-append    path:bin/pkg-config:pkgconfig

depends_lib-append      path:lib/pkgconfig/glib-2.0.pc:glib2 \
                        port:inih   \
                        port:lua54

use_xz                  yes

post-destroot {
    xinstall -d ${destroot}${prefix}/share/${name}
    copy ${worksrcpath}/examples ${destroot}${prefix}/share/${name}
}
