diff options
Diffstat (limited to 'wayland/imv')
-rwxr-xr-x | wayland/imv/build | 6 | ||||
-rw-r--r-- | wayland/imv/checksums | 4 | ||||
-rw-r--r-- | wayland/imv/patches/0003-console-update-libgrapheme-API-to-version-2.0.0.patch | 38 | ||||
-rw-r--r-- | wayland/imv/sources | 4 | ||||
-rw-r--r-- | wayland/imv/version | 2 |
5 files changed, 43 insertions, 11 deletions
diff --git a/wayland/imv/build b/wayland/imv/build index 4ca5d07e..3217d9ad 100755 --- a/wayland/imv/build +++ b/wayland/imv/build @@ -1,11 +1,9 @@ #!/bin/sh -e -for patch in *.patch; do - [ -f "$patch" ] && patch -p1 < "$patch" -done - export DESTDIR="$1" +clsed '/^directory =/s/=.*/= inih/' subprojects/inih.wrap + cl-meson \ -Dlibjpeg=enabled \ -Dlibpng=enabled \ diff --git a/wayland/imv/checksums b/wayland/imv/checksums index d99e1e2f..b4136788 100644 --- a/wayland/imv/checksums +++ b/wayland/imv/checksums @@ -1,5 +1,3 @@ %BLAKE3 -154ed94c58e3c97ca1d9d8c9dbf1bd86e8661be07454822048eaa80886ddeffd v4.3.1.tar.gz +bbcc11b702ed9554ddc460f629b3ed39be0395aaf1f8d6ead2d2cb32780c4f14 v4.4.0.tar.gz 3f3775e97c033b812a8a45c1587d6003fff54c99b64102ec366fe2e86f649e9b r52.tar.gz -2ad333e1c8f277be3961bede9696a9c111636f63a8797b17b8780a6fb4c1e483 0001-support-libgrapheme.patch -7f4a255e11eaff0ece1051e27b190e47b4893728fe40d1e4f17ef8c7c17d3863 0002-console-update-libgrapheme-API-to-version-1.patch diff --git a/wayland/imv/patches/0003-console-update-libgrapheme-API-to-version-2.0.0.patch b/wayland/imv/patches/0003-console-update-libgrapheme-API-to-version-2.0.0.patch new file mode 100644 index 00000000..3afdf52d --- /dev/null +++ b/wayland/imv/patches/0003-console-update-libgrapheme-API-to-version-2.0.0.patch @@ -0,0 +1,38 @@ +From 10ddb6571e811be121ed62d5725ddaf40e3923dc Mon Sep 17 00:00:00 2001 +From: Cem Keylan <cem@ckyln.com> +Date: Fri, 7 Oct 2022 13:03:15 +0200 +Subject: [PATCH] console: update libgrapheme API to version 2.0.0 + +libgrapheme recently saw its second major version which was "refactored +for correctness and conformance"[1]. + +[1]: http://lists.suckless.org/news/2210/0036.html +--- + src/console.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/console.c b/src/console.c +index 9db18e7..22803e1 100644 +--- a/src/console.c ++++ b/src/console.c +@@ -52,7 +52,7 @@ static size_t next_char(char *buffer, size_t position) + return result; + #elif defined(IMV_USE_GRAPHEME) + if (buffer[position] != 0) { +- return position + grapheme_next_character_break(buffer + position, SIZE_MAX); ++ return position + grapheme_next_character_break_utf8(buffer + position, SIZE_MAX); + } else { + return position; + } +@@ -85,7 +85,7 @@ static size_t prev_char(char *buffer, size_t position) + size_t result = 0; + size_t step; + do { +- step = grapheme_next_character_break(buffer + result, SIZE_MAX); ++ step = grapheme_next_character_break_utf8(buffer + result, SIZE_MAX); + if (result + step >= position) + break; + result += step; +-- +2.38.0 + diff --git a/wayland/imv/sources b/wayland/imv/sources index 9031fbaf..267de77d 100644 --- a/wayland/imv/sources +++ b/wayland/imv/sources @@ -1,4 +1,2 @@ -https://git.sr.ht/~exec64/imv/archive/v4.3.1.tar.gz +https://git.sr.ht/~exec64/imv/archive/v4.4.0.tar.gz https://github.com/benhoyt/inih/archive/r52.tar.gz subprojects/inih -patches/0001-support-libgrapheme.patch -patches/0002-console-update-libgrapheme-API-to-version-1.patch diff --git a/wayland/imv/version b/wayland/imv/version index 529d54cc..2ee55c7f 100644 --- a/wayland/imv/version +++ b/wayland/imv/version @@ -1 +1 @@ -4.3.1 2 +4.4.0 1 |