git: ef1948cac85b - main - x11/kf5-plasma-framework: add bugfix from the distributions-list

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Wed, 30 Mar 2022 14:13:16 UTC
The branch main has been updated by adridg:

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

commit ef1948cac85b9643a668136be225b61c006ec732
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2022-03-30 14:12:47 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2022-03-30 14:13:14 +0000

    x11/kf5-plasma-framework: add bugfix from the distributions-list
    
    Specific backport request for a visual regression on the KDE
    distributions list.
---
 x11/kf5-plasma-framework/Makefile                  |  3 ++
 .../7352045b388f4b0ef553706bd219457e5018ce4e.patch | 40 ++++++++++++++++++++++
 2 files changed, 43 insertions(+)

diff --git a/x11/kf5-plasma-framework/Makefile b/x11/kf5-plasma-framework/Makefile
index 3fcb06b62f67..526a6244f306 100644
--- a/x11/kf5-plasma-framework/Makefile
+++ b/x11/kf5-plasma-framework/Makefile
@@ -1,7 +1,10 @@
 PORTNAME=	plasma-framework
 DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
+PORTREVISION=	1
 CATEGORIES=	x11 kde kde-frameworks
 
+EXTRA_PATCHES=	${PATCHDIR}/7352045b388f4b0ef553706bd219457e5018ce4e.patch:-p1
+
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	KF5 plugin based UI runtime used to write user interfaces
 
diff --git a/x11/kf5-plasma-framework/files/7352045b388f4b0ef553706bd219457e5018ce4e.patch b/x11/kf5-plasma-framework/files/7352045b388f4b0ef553706bd219457e5018ce4e.patch
new file mode 100644
index 000000000000..04992bcb129d
--- /dev/null
+++ b/x11/kf5-plasma-framework/files/7352045b388f4b0ef553706bd219457e5018ce4e.patch
@@ -0,0 +1,40 @@
+From 7352045b388f4b0ef553706bd219457e5018ce4e Mon Sep 17 00:00:00 2001
+From: Marco Martin <notmart@gmail.com>
+Date: Mon, 28 Mar 2022 21:20:16 +0000
+Subject: [PATCH] Don't install the heading SVG in breeze-light and breeze-dark
+ Plasma themes
+
+Installing that file there was an acky workaround that got broken by 2cccf230.
+---
+ src/desktoptheme/breeze-dark/CMakeLists.txt  | 5 +----
+ src/desktoptheme/breeze-light/CMakeLists.txt | 4 ----
+ 2 files changed, 1 insertion(+), 8 deletions(-)
+
+diff --git a/src/desktoptheme/breeze-dark/CMakeLists.txt b/src/desktoptheme/breeze-dark/CMakeLists.txt
+index 8f2078e4d..7f8f99062 100644
+--- a/src/desktoptheme/breeze-dark/CMakeLists.txt
++++ b/src/desktoptheme/breeze-dark/CMakeLists.txt
+@@ -8,7 +8,4 @@ install(
+     FILES colors "${CMAKE_CURRENT_BINARY_DIR}/metadata.desktop"
+     DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/breeze-dark
+ )
+-install(
+-    FILES ${PROJECT_BINARY_DIR}/src/desktoptheme/breeze/default.gzipped/widgets/plasmoidheading.svgz
+-    DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/breeze-dark/widgets
+-)
++
+diff --git a/src/desktoptheme/breeze-light/CMakeLists.txt b/src/desktoptheme/breeze-light/CMakeLists.txt
+index 678033cec..6688a603b 100644
+--- a/src/desktoptheme/breeze-light/CMakeLists.txt
++++ b/src/desktoptheme/breeze-light/CMakeLists.txt
+@@ -8,7 +8,3 @@ install(
+     FILES colors "${CMAKE_CURRENT_BINARY_DIR}/metadata.desktop"
+     DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/breeze-light
+ )
+-install(
+-    FILES ${PROJECT_BINARY_DIR}/src/desktoptheme/breeze/default.gzipped/widgets/plasmoidheading.svgz
+-    DESTINATION ${PLASMA_DATA_INSTALL_DIR}/desktoptheme/breeze-light/widgets
+-)
+-- 
+GitLab
+