# -*- 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                libidn
version             1.42
revision            0

checksums           rmd160  7a05c9fe70e5e2f2864d20ca601fda2c20d513c2 \
                    sha256  d6c199dcd806e4fe279360cb4b08349a0d39560ed548ffd1ccadda8cdecb4723 \
                    size    2653078

categories          mail
license             {LGPL-2.1+ GPL-3+}
description         GNU International Domain Name Library (legacy version 1).
long_description    {*}${description} \
                    GNU Libidn is a fully documented implementation of the Stringprep, \
                    Punycode and IDNA 2003 specifications. Libidn's purpose is to encode \
                    and decode internationalized domain names.
homepage            https://www.gnu.org/software/libidn/
maintainers         nomaintainer
master_sites        gnu

depends_build       port:gettext
depends_lib         port:libiconv port:gettext-runtime

configure.args      --disable-csharp --disable-silent-rules

configure.checks.implicit_function_declaration.whitelist-append strchr

notes "
GNU libidn2 is the successor of GNU libidn. It comes with IDNA 2008 and\
TR46 implementations and also provides a compatibility layer for GNU libidn.
"

livecheck.type      regex
livecheck.url       https://ftp.gnu.org/gnu/$name/
livecheck.regex     $name-(\\d+(?:\\.\\d+)*)