git: 25761ffd3261 - 2025Q2 - x11-wm/plasma6-kwin: add upstream patch to fix crash

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Thu, 10 Apr 2025 21:32:49 UTC
The branch 2025Q2 has been updated by makc:

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

commit 25761ffd3261f2ebce7e7a9979250dea8641f8d6
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2025-04-10 20:41:47 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2025-04-10 21:32:26 +0000

    x11-wm/plasma6-kwin: add upstream patch to fix crash
    
    while here, remove stale bits from Makefile.
    
    (cherry picked from commit 0178c265d37023fd60a9515a4a8b2ef2deade45e)
---
 x11-wm/plasma6-kwin/Makefile | 7 +++----
 x11-wm/plasma6-kwin/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/x11-wm/plasma6-kwin/Makefile b/x11-wm/plasma6-kwin/Makefile
index e67a4952f3d8..16ea635c3196 100644
--- a/x11-wm/plasma6-kwin/Makefile
+++ b/x11-wm/plasma6-kwin/Makefile
@@ -1,6 +1,9 @@
 PORTNAME=	kwin
 DISTVERSION=	${KDE_PLASMA_VERSION}
+PORTREVISION=	1
 CATEGORIES=	x11-wm kde kde-plasma
+PATCH_SITES=	https://invent.kde.org/plasma/kwin/-/commit/
+PATCHFILES=	93bf2f98ae22e654d997c7140b7fe9936fa3f2d3.diff:-p1
 
 COMMENT=	Easy to use, but flexible, X Window Manager and Wayland Compositor
 MAINTAINER=	kde@FreeBSD.org
@@ -46,8 +49,4 @@ USE_XORG=	ice sm x11 xcb xext xi
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 SHEBANG_FILES=	src/plugins/strip-effect-metadata.py
 
-post-patch:
-# Fix version in tarball
-	${REINPLACE_CMD} "/set(PROJECT_VERSION/s,6.3.2,6.3.3," ${WRKSRC}/CMakeLists.txt
-
 .include <bsd.port.mk>
diff --git a/x11-wm/plasma6-kwin/distinfo b/x11-wm/plasma6-kwin/distinfo
index b3066c5cf049..4e6c7a999bcf 100644
--- a/x11-wm/plasma6-kwin/distinfo
+++ b/x11-wm/plasma6-kwin/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1743668624
+TIMESTAMP = 1744307349
 SHA256 (KDE/plasma/6.3.4/kwin-6.3.4.tar.xz) = e74a61eccc5d3248dbd620b6c2c7b175013b15ff59e17af70f88aefc082445a5
 SIZE (KDE/plasma/6.3.4/kwin-6.3.4.tar.xz) = 8977144
+SHA256 (KDE/plasma/6.3.4/93bf2f98ae22e654d997c7140b7fe9936fa3f2d3.diff) = d171f55690c81cf530142a608d6fedd3524fc89cea168e66a0d9f5d7d57137ea
+SIZE (KDE/plasma/6.3.4/93bf2f98ae22e654d997c7140b7fe9936fa3f2d3.diff) = 687