git: a0c82b3c9391 - main - x11/wofi: update to 1.4

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 06 Feb 2024 20:06:02 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a0c82b3c9391e7fae7f190ac06f1a25ea304d5ce

commit a0c82b3c9391e7fae7f190ac06f1a25ea304d5ce
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-02-04 23:26:21 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-02-06 20:05:25 +0000

    x11/wofi: update to 1.4
    
    Changes:        https://hg.sr.ht/~scoopta/wofi/log?rev=v1.4
    Reported by:    Repology
---
 x11/wofi/Makefile               |  3 +--
 x11/wofi/distinfo               |  6 +++---
 x11/wofi/files/patch-src_wofi.c | 26 ++++++++++++++++++++++++++
 3 files changed, 30 insertions(+), 5 deletions(-)

diff --git a/x11/wofi/Makefile b/x11/wofi/Makefile
index aaa3af2984ec..b927b48e99cc 100644
--- a/x11/wofi/Makefile
+++ b/x11/wofi/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	wofi
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.3
-PORTREVISION=	3
+DISTVERSION=	1.4
 CATEGORIES=	x11 wayland
 MASTER_SITES=	https://hg.sr.ht/~scoopta/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
 
diff --git a/x11/wofi/distinfo b/x11/wofi/distinfo
index 6ed476a6214e..a24ed01fc62e 100644
--- a/x11/wofi/distinfo
+++ b/x11/wofi/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1665110113
-SHA256 (wofi-v1.3.tar.gz) = 7644e4e995bc027b7f3f411ceda82b3e2a72a4a424f6193663c27bbf00f23067
-SIZE (wofi-v1.3.tar.gz) = 77317
+TIMESTAMP = 1707089181
+SHA256 (wofi-v1.4.tar.gz) = 0c1190164ed80fbaae747d74a2a3c980e9f92d12f594c961596a7025822112d6
+SIZE (wofi-v1.4.tar.gz) = 79100
diff --git a/x11/wofi/files/patch-src_wofi.c b/x11/wofi/files/patch-src_wofi.c
new file mode 100644
index 000000000000..36db8292717e
--- /dev/null
+++ b/x11/wofi/files/patch-src_wofi.c
@@ -0,0 +1,26 @@
+https://todo.sr.ht/~scoopta/wofi/211
+
+--- src/wofi.c.orig	2024-02-04 23:26:21 UTC
++++ src/wofi.c
+@@ -1299,13 +1299,10 @@ static void do_copy(void) {
+ 	}
+ }
+ 
+-static void on_exit_set_custom_key_return_code(int status, void* data) {
+-	_UNUSED(data);
+-	if (status == EXIT_SUCCESS) {
++static void atexit_set_custom_key_return_code(void) {
+ 		fflush(stdout);
+ 		fflush(stderr);
+ 		_exit(custom_key_return_code);
+-	}
+ }
+ 
+ static void do_custom_key(int custom_key_num) {
+@@ -2064,5 +2061,5 @@ void wofi_init(struct map* _config) {
+ 	gtk_window_set_title(GTK_WINDOW(window), prompt);
+ 	gtk_widget_show_all(window);
+ 
+-	on_exit(on_exit_set_custom_key_return_code, NULL);
++	atexit(atexit_set_custom_key_return_code);
+ }