ref https://github.com/teaxyz/pantry.extra/issues/99
This commit is contained in:
Jacob Heider 2023-02-05 20:54:38 -05:00 committed by Jacob Heider
parent 779c2f6f13
commit 1bc00240cd

View file

@ -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