{ "name": "libidn2", "version": "2.3.8", "summary": "GNU Libidn2: internationalised domain names (IDNA 2008, TR46), with the idn2 tool", "category": "library", "license": "LGPL-3.0-or-later OR GPL-2.0-or-later", "homepage": "https://www.gnu.org/software/libidn/#libidn2", "source": { "url": "https://mirrors.kernel.org/gnu/libidn/libidn2-2.3.8.tar.gz", "sha256": "f557911bf6171621e1f72ff35f5b1825bb35b52ed45325dcdee931e5d3c0787a" }, "watch": {"kind": "index", "url": "https://mirrors.kernel.org/gnu/libidn/", "regex": "libidn2-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [ "libunistring" ], "env_packages": [], "static": true, "nss": false, "check": "t=$(mktemp -d) && export LC_ALL=C.UTF-8 && bin/idn2 'bücher.example' | has -x 'xn--bcher-kva.example' > /dev/null && bin/idn2 --decode 'xn--bcher-kva.example' | has -x 'bücher.example' > /dev/null && bin/idn2 'faß.de' | has -x 'xn--fa-hia.de' > /dev/null && ! bin/idn2 'ab--c.example' 2>/dev/null && check_lib libidn2 idn2.h 'char *out = NULL; int rc = idn2_to_ascii_8z(\"münchen.de\", &out, IDN2_NONTRANSITIONAL); printf(\"libidn2 %s: münchen.de is %s\\n\", idn2_check_version(NULL), out ? out : \"?\"); return rc != IDN2_OK || strcmp(out, \"xn--mnchen-3ya.de\")' > \"$t/lib\" && echo 'libidn2 2.3.8: bücher.example to xn--bcher-kva.example and back, faß.de as IDNA 2008 (xn--fa-hia.de), a double hyphen refused; münchen.de through check_lib'" }