git: 6836dcf21e3c - 2025Q1 - x11/swaylock-plugin: update to 1.8.1

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 20 Mar 2025 20:49:08 UTC
The branch 2025Q1 has been updated by jbeich:

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

commit 6836dcf21e3c208ce5be50c61cc6e5e270e22823
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2025-03-20 14:20:58 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-03-20 20:48:57 +0000

    x11/swaylock-plugin: update to 1.8.1
    
    --grace flag isn't supported on FreeBSD due to missing (e)logind but
    can probably be ported to basu + consolekit2 later.
    
    Changes:        https://github.com/mstoeckl/swaylock-plugin/releases/tag/v1.8.1
    Reported by:    GitHub (watch releases)
    
    (cherry picked from commit 4973746ecf8edfc3dd3d20e4d67b03e0119d9b8f)
---
 x11/swaylock-plugin/Makefile | 12 +++++-------
 x11/swaylock-plugin/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/x11/swaylock-plugin/Makefile b/x11/swaylock-plugin/Makefile
index a13167f28c44..3b79c4925c91 100644
--- a/x11/swaylock-plugin/Makefile
+++ b/x11/swaylock-plugin/Makefile
@@ -1,4 +1,4 @@
-DISTVERSION=	1.8.0
+DISTVERSION=	1.8.1
 PORTREVISION=	0
 PKGNAMESUFFIX=	-plugin
 
@@ -11,6 +11,7 @@ DISTINFO_FILE=	${.CURDIR}/distinfo
 
 GH_ACCOUNT=	mstoeckl
 GH_PROJECT=	${PORTNAME}${PKGNAMESUFFIX}
+MESON_ARGS=	-Dlogind=disabled
 
 pre-patch:
 # Compat to apply patch-pam_swaylock "as is"
@@ -21,12 +22,9 @@ slave-post-patch:
 # Compat to apply patch-pam_swaylock "as is"
 	-@${MV} ${WRKSRC}/pam/${PORTNAME}.orig ${WRKSRC}/pam/${PKGBASE}.orig
 	@${MV} ${WRKSRC}/pam/${PORTNAME} ${WRKSRC}/pam/${PKGBASE}
-# Avoid subdirs to match regular swaylock
-	@${REINPLACE_CMD} "s,\(rename: \['\)[^/]*/,\1," \
-		${WRKSRC}/completions/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
+# Skip building stub swaylock-sleep-watcher
+	@${REINPLACE_CMD} -e '/^logind/s/,/, disabler: true,/' \
+		${WRKSRC}/meson.build
 
 post-install:
 	@${REINPLACE_CMD} '/licenses/!s/${PORTNAME}/${PKGBASE}/' ${TMPPLIST}
diff --git a/x11/swaylock-plugin/distinfo b/x11/swaylock-plugin/distinfo
index 1d2f2f34f119..4823ab20f791 100644
--- a/x11/swaylock-plugin/distinfo
+++ b/x11/swaylock-plugin/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1724459844
-SHA256 (mstoeckl-swaylock-plugin-v1.8.0_GH0.tar.gz) = e5f59322e76f72360f4b5096d8a4ae963b5d2cbe7272901dc308955980867f55
-SIZE (mstoeckl-swaylock-plugin-v1.8.0_GH0.tar.gz) = 59493
+TIMESTAMP = 1742480458
+SHA256 (mstoeckl-swaylock-plugin-v1.8.1_GH0.tar.gz) = d02d540305944b350b21d2875d891a2d6288a059c70312ad0aca43d91bfc8cfb
+SIZE (mstoeckl-swaylock-plugin-v1.8.1_GH0.tar.gz) = 70252