# -*- 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.43
revision            0

checksums           rmd160  7ce67739af0d6db8a7de82f8e25ba8528cd0ab21 \
                    sha256  bdc662c12d041b2539d0e638f3a6e741130cdb33a644ef3496963a443482d164 \
                    size    2535228

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+)*)
