# -*- 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                ascii
version             3.30
revision            0
checksums           rmd160  64838a1f6d865f7b9f12842e15235c2984b03676 \
                    sha256  ed2fdc973e1b87da2af83050e560e731b0f3bf5f6b4fd9babc9f60bb2b992443 \
                    size    14383

categories          textproc
maintainers         {ryandesign @ryandesign} openmaintainer
license             BSD

description         provides conversion between ASCII character tables

long_description    The ascii utility provides easy conversion between various \
                    byte representations and the American Standard Code for \
                    Information Interchange (ASCII) character table

homepage            http://www.catb.org/~esr/ascii/
master_sites        ${homepage}

use_configure       no

variant universal {}

build.args          CC=${configure.cc} \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]"

destroot.args       PREFIX=${prefix}

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        COPYING \
        README \
        ${destroot}${docdir}
}

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