git: 347fb5e08c06 - main - x11/xss-lock: perform some needed facelifting on the port (+)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 16 Oct 2026 23:46:03 UTC
The branch main has been updated by danfe:

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

commit 347fb5e08c063fb3b556f001c598ac493a7bec4a
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2026-10-16 23:44:50 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2026-10-16 23:44:50 +0000

    x11/xss-lock: perform some needed facelifting on the port (+)
    
    - Modernize CMakeLists.txt to prepare for upcoming CMake 4.x
    - Simplify distfile handling by employing the ?dummy=/ trick
---
 x11/xss-lock/Makefile                   |  4 +---
 x11/xss-lock/distinfo                   |  4 ++--
 x11/xss-lock/files/patch-CMakeLists.txt | 11 +++++++++++
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/x11/xss-lock/Makefile b/x11/xss-lock/Makefile
index 14b48421c06f..2d734ce8c2d7 100644
--- a/x11/xss-lock/Makefile
+++ b/x11/xss-lock/Makefile
@@ -1,9 +1,7 @@
 PORTNAME=	xss-lock
 DISTVERSION=	0.3.0-g20140302
 CATEGORIES=	x11
-MASTER_SITES=	https://bitbucket.org/raymonad/xss-lock/get/
-DISTNAME=	${BB_TAGNAME}	# commit hash: no embedded ${PORTNAME}
-DIST_SUBDIR=	${PORTNAME}	# and that's why we need ${DIST_SUBDIR}
+MASTER_SITES=	https://bitbucket.org/raymonad/xss-lock/get/${BB_TAGNAME}.tar.bz2?dummy=/
 
 MAINTAINER=	danfe@FreeBSD.org
 COMMENT=	Use external locker as X11 screen saver
diff --git a/x11/xss-lock/distinfo b/x11/xss-lock/distinfo
index 6bada39a5acb..2b552055a47d 100644
--- a/x11/xss-lock/distinfo
+++ b/x11/xss-lock/distinfo
@@ -1,3 +1,3 @@
 TIMESTAMP = 1393757192
-SHA256 (xss-lock/1e158fb20108.tar.bz2) = b9116a91367d10cd582343ad3ac6fda56c7413a7a27b6b6ae4b45ac2aa9fe8f4
-SIZE (xss-lock/1e158fb20108.tar.bz2) = 12135
+SHA256 (xss-lock-0.3.0-g20140302.tar.bz2) = b9116a91367d10cd582343ad3ac6fda56c7413a7a27b6b6ae4b45ac2aa9fe8f4
+SIZE (xss-lock-0.3.0-g20140302.tar.bz2) = 12135
diff --git a/x11/xss-lock/files/patch-CMakeLists.txt b/x11/xss-lock/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..9774ad1d1b59
--- /dev/null
+++ b/x11/xss-lock/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2014-03-02 10:46:32 UTC
++++ CMakeLists.txt
+@@ -1,6 +1,5 @@
+-cmake_minimum_required(VERSION 2.8)
+-project(xss-lock C)
+-set(PROJECT_VERSION 0.3.0)
++cmake_minimum_required(VERSION 2.8...9.9)
++project(xss-lock VERSION 0.3.0 LANGUAGES C)
+ 
+ install(FILES NEWS DESTINATION share/doc/${PROJECT_NAME})
+