# -*- 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
# $Id: Portfile 114098 2013-11-29 07:47:47Z ryandesign@macports.org $

PortSystem          1.0

name                ascii
version             3.14
categories          textproc
platforms           darwin
maintainers         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}

checksums           rmd160  2d5896a9064c298a181f0a7170b3927545f52785 \
                    sha256  7f0e3fbfe318a372428a1117ec9527ec0a88946323c8b15dc86634a11989bcd1

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 644 -W ${worksrcpath} \
        COPYING \
        README \
        ${destroot}${docdir}
}

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