git: 800557555807 - 2024Q3 - x11-clocks/wlclock: unbreak long options

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 03 Aug 2024 16:49:44 UTC
The branch 2024Q3 has been updated by jbeich:

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

commit 800557555807fd786677ec172df2b7ef332278e0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-08-03 16:48:08 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-03 16:49:41 +0000

    x11-clocks/wlclock: unbreak long options
    
    $ wlclock --corner-radius 90
    ERROR: Radius configuration requires one or four arguments.
    
    Reported by:    S. R. Gal (private mail)
    
    (cherry picked from commit d28e388a9a1e09ad8181a37575ed35e681a426ce)
---
 x11-clocks/wlclock/Makefile                  |  2 +-
 x11-clocks/wlclock/files/patch-src_wlclock.c | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/x11-clocks/wlclock/Makefile b/x11-clocks/wlclock/Makefile
index d0c75520fbfd..757f53d37a3b 100644
--- a/x11-clocks/wlclock/Makefile
+++ b/x11-clocks/wlclock/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	wlclock
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.1
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11-clocks wayland
 MASTER_SITES=	https://git.sr.ht/~leon_plickat/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
 
diff --git a/x11-clocks/wlclock/files/patch-src_wlclock.c b/x11-clocks/wlclock/files/patch-src_wlclock.c
new file mode 100644
index 000000000000..8f8d6adbdafb
--- /dev/null
+++ b/x11-clocks/wlclock/files/patch-src_wlclock.c
@@ -0,0 +1,13 @@
+https://lists.sr.ht/~leon_plickat/public-inbox/patches/54271
+
+--- src/wlclock.c.orig	2021-12-30 16:22:36 UTC
++++ src/wlclock.c
+@@ -330,7 +330,7 @@ static bool handle_command_flags (int argc, char *argv
+ 	int opt, args;
+ 	extern int optind;
+ 	extern char *optarg;
+-	while ( (opt = getopt_long(argc, argv, "hvV", opts, &optind)) != -1 ) switch (opt)
++	while ( (opt = getopt_long(argc, argv, "hvV", opts, NULL)) != -1 ) switch (opt)
+ 	{
+ 		case 'h':
+ 			fputs(usage, stderr);