git: 598b2da1859f - main - x11/swaylock: update to 1.8.0

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 24 Aug 2024 18:10:23 UTC
The branch main has been updated by jbeich:

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

commit 598b2da1859f3a58efe7e98a3be85c33436663de
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-08-23 20:39:33 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-08-24 18:09:13 +0000

    x11/swaylock: update to 1.8.0
    
    Changes:        https://github.com/swaywm/swaylock/releases/tag/v1.8.0
    Reported by:    GitHub (watch releases)
---
 x11/swaylock-effects/Makefile | 1 +
 x11/swaylock/Makefile         | 7 +++++--
 x11/swaylock/distinfo         | 6 +++---
 3 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/x11/swaylock-effects/Makefile b/x11/swaylock-effects/Makefile
index 979f820f822c..7529dce51e03 100644
--- a/x11/swaylock-effects/Makefile
+++ b/x11/swaylock-effects/Makefile
@@ -1,5 +1,6 @@
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.7.0.0
+PORTREVISION=	2
 PKGNAMESUFFIX=	-effects
 
 COMMENT=	Screen locker for Wayland with fancy effects
diff --git a/x11/swaylock/Makefile b/x11/swaylock/Makefile
index 8f85d4e2dbee..d96c11c8c669 100644
--- a/x11/swaylock/Makefile
+++ b/x11/swaylock/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	swaylock
 DISTVERSIONPREFIX?=	v
-DISTVERSION?=	1.7.2
-PORTREVISION?=	2
+DISTVERSION?=	1.8.0
+PORTREVISION?=	0
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -44,5 +44,8 @@ post-patch:
 	@${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
 		-e "s/meson.project_version()/'${DISTVERSIONFULL}'/" \
 		${WRKSRC}/meson.build
+# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275328
+	@${REINPLACE_CMD} -e 's/_POSIX_C_SOURCE 200809L/_XOPEN_SOURCE 700/' \
+		${WRKSRC}/main.c
 
 .include <bsd.port.mk>
diff --git a/x11/swaylock/distinfo b/x11/swaylock/distinfo
index b6ac334ba6fc..06452cd91cf1 100644
--- a/x11/swaylock/distinfo
+++ b/x11/swaylock/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1674942867
-SHA256 (swaywm-swaylock-v1.7.2_GH0.tar.gz) = a42b456cc82bcaea9732d31e85e7d77a8ddd547759fba817e1617d8a1fd003e5
-SIZE (swaywm-swaylock-v1.7.2_GH0.tar.gz) = 37368
+TIMESTAMP = 1724445573
+SHA256 (swaywm-swaylock-v1.8.0_GH0.tar.gz) = 7efc5eb6aa2fc00a3435621fc78df5bab8afbe17f7d8815241f4fbd4bbeed7f8
+SIZE (swaywm-swaylock-v1.8.0_GH0.tar.gz) = 33073