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

name                showkey
version             1.9
categories          sysutils
platforms           darwin
maintainers         {khindenburg @kurthindenburg} openmaintainer
license             MIT

description         echo raw keystrokes back at you in a printable form

long_description    This program puts your terminal in raw mode, eats \
                    keystrokes, and prints them back it you in a recognizable \
                    printed form (using <>-surrounded ASCII mnemonics for \
                    non-printables). \
                    This may be useful, for example, if you're not certain \
                    what your keyboard keys are sending.

homepage            http://catb.org/esr/showkey/
master_sites        ${homepage}

checksums           rmd160  cd12716dff0ec1639c9d38de64e7602914eed4d1 \
                    sha256  7230aed91f9a510ae5d234a32ba88402eb6c39431ad8175e78035f9d9b6a8f6e

patchfiles          patch-Makefile.diff

use_configure       no

variant universal {}

build.target
build.args          CC="${configure.cc} [get_canonical_archflags cc]"

destroot.args       PREFIX=${prefix}

livecheck.type      regex
livecheck.regex     "${name}-(\[\\d.\]+)${extract.suffix}"
