From 1bc00240cdcf5e60448aa3d987f8242af8a13d90 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Sun, 5 Feb 2023 20:54:38 -0500 Subject: [PATCH] +libidn2 ref https://github.com/teaxyz/pantry.extra/issues/99 --- projects/gnu.org/libidn2/package.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 projects/gnu.org/libidn2/package.yml diff --git a/projects/gnu.org/libidn2/package.yml b/projects/gnu.org/libidn2/package.yml new file mode 100644 index 0000000000..643e2c6e95 --- /dev/null +++ b/projects/gnu.org/libidn2/package.yml @@ -0,0 +1,35 @@ +distributable: + url: https://ftp.gnu.org/gnu/libidn/libidn2-{{ version.raw }}.tar.gz + strip-components: 1 + +versions: + #TODO HTML listing: https://ftp.gnu.org/gnu/libidn/ + - 2.3.4 + +dependencies: + gnu.org/gettext: '*' + +build: + dependencies: + tea.xyz/gx/make: '*' + tea.xyz/gx/cc: c99 + gnu.org/texinfo: '*' + freedesktop.org/pkg-config: '*' + script: | + ./configure --prefix={{ prefix }} + make install + +test: + script: | + test "$(idn2 ""$IN1"")" = "$OUT1" + test "$(idn2 ""$IN2"")" = "$OUT2" + env: + linux: + LC_ALL: C.UTF-8 + IN1: räksmörgås.se + IN2: blåbærgrød.no + OUT1: xn--rksmrgs-5wao1o.se + OUT2: xn--blbrgrd-fxak7p.no + +provides: + - bin/idn2 \ No newline at end of file