# -*- 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.44

checksums           rmd160  2ed73d429e043284dfcf4bf655bebc63d37fc820 \
                    sha256  499608bab3a65650a0ea52888c13a8deebe3f71408e319acd9ec52e02eb13959 \
                    size    2600944

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