# -*- 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                uni2ascii
version             4.18
revision            1
checksums           rmd160  4cc1ab903b182bbb7f40c58c8eb5d77cb12b5c33 \
                    sha256  59228212f81dfadf9fee87c37a0ce138e4fc503144492403b807e6e666f855c8 \
                    size    127125

categories          textproc
maintainers         nomaintainer
license             GPL-3
description         converts between UTF-8 Unicode and 7-bit ASCII equivalents
long_description    \
    uni2ascii and ascii2uni convert between UTF-8 Unicode and more than a \
    dozen 7-bit ASCII equivalents including: hexadecimal and decimal HTML \
    numeric character references, \u-escapes, standard hexadecimal, raw \
    hexadecimal, and RFC2396 URI format. Such ASCII equivalents are \
    encountered in a variety of circumstances, such as when Unicode text is \
    included in program source, when entering text into Web programs that can \
    handle the Unicode character set but are not 8-bit safe, and when debugging.

homepage            http://billposer.org/Software/uni2ascii.html
master_sites        http://billposer.org/Software/Downloads/
use_bzip2           yes

depends_lib         port:gettext

patchfiles          patch-configure.ac.diff \
                    implicit-int.patch \
                    implicit.patch

# We are patching configure.ac.
use_autoreconf      yes

configure.ldflags-append -lintl

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
