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

name                ascii
version             3.33
revision            0
checksums           rmd160  aad5dea85c6660374aee7b54a64450be2eb16f93 \
                    sha256  f79d31e637c66f77902ff8971304f73490b5e2a26aba2e7bd02855407d2cf312 \
                    size    14749

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}

# ascii.1 used to be included in the tarball but isn't in 3.33. If it reappears
# in a later version, this dependency can probably be removed again.
depends_build       port:asciidoctor

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

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