# -*- 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           clang_dependency 1.0
PortGroup           gnulib 1.0
PortGroup           muniversal 1.0

name                libunistring
version             1.4.2
revision            0

checksums           rmd160  13f44ab01d9371649b372b85e0ea10548659f35a \
                    sha256  e82664b170064e62331962126b259d452d53b227bb4a93ab20040d846fec01d8 \
                    size    5046603

categories          textproc
license             {LGPL-3+ GPL-2+}
maintainers         nomaintainer
description         library for manipulating Unicode strings
long_description    Text files are nowadays usually encoded in Unicode, and may consist of \
                    very different scripts – from Latin letters to Chinese Hanzi –, with many \
                    kinds of special characters – accents, right-to-left writing marks, \
                    hyphens, Roman numbers, and much more. But the POSIX platform APIs for \
                    text do not contain adequate functions for dealing with particular \
                    properties of many Unicode characters. In fact, the POSIX APIs for text \
                    have several assumptions at their base which don't hold for Unicode text. \
                    This library provides functions for manipulating Unicode strings and for \
                    manipulating C strings according to the Unicode standard.

homepage            https://www.gnu.org/software/libunistring/
master_sites        gnu

depends_lib         port:libiconv

patchfiles          0700-multiarch-libc.patch

# We are patching configure.ac.
use_autoreconf      yes
autoreconf.args     -fvi
configure.checks.implicit_function_declaration.whitelist-append strchr
