git: 72cf52e15e68 - main - x11/plasma5-plasma-workspace: Unbreak Region&Language KCM (again)

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Fri, 17 Nov 2023 06:42:36 UTC
The branch main has been updated by arrowd:

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

commit 72cf52e15e68aaf2f3fa097bc2faf052c78b1b64
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2023-11-17 06:39:59 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2023-11-17 06:40:29 +0000

    x11/plasma5-plasma-workspace: Unbreak Region&Language KCM (again)
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 x11/plasma5-plasma-workspace/Makefile                         |  1 +
 .../files/patch-kcms_region__language_kcmregionandlang.cpp    | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/x11/plasma5-plasma-workspace/Makefile b/x11/plasma5-plasma-workspace/Makefile
index d90e0ce13127..b315037b30ec 100644
--- a/x11/plasma5-plasma-workspace/Makefile
+++ b/x11/plasma5-plasma-workspace/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	plasma-workspace
 DISTVERSION=	${KDE_PLASMA_VERSION}.1
+PORTREVISION=	1
 CATEGORIES=	x11 kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
diff --git a/x11/plasma5-plasma-workspace/files/patch-kcms_region__language_kcmregionandlang.cpp b/x11/plasma5-plasma-workspace/files/patch-kcms_region__language_kcmregionandlang.cpp
new file mode 100644
index 000000000000..13949bc40bc6
--- /dev/null
+++ b/x11/plasma5-plasma-workspace/files/patch-kcms_region__language_kcmregionandlang.cpp
@@ -0,0 +1,11 @@
+--- kcms/region_language/kcmregionandlang.cpp.orig	2023-10-25 10:05:43 UTC
++++ kcms/region_language/kcmregionandlang.cpp
+@@ -61,7 +61,7 @@ KCMRegionAndLang::KCMRegionAndLang(QObject *parent, co
+     qRegisterMetaType<KCM_RegionAndLang::SettingType>();
+     qmlRegisterUncreatableMetaObject(KCM_RegionAndLang::staticMetaObject, "kcmregionandlang", 1, 0, "SettingType", "Error: SettingType is an enum");
+ 
+-#ifdef GLIBC_LOCALE_GENERATED
++#if GLIBC_LOCALE_GENERATED
+     // fedora pre generate locales, fetch available locales from localectl. /usr/share/i18n/locales is empty in fedora
+     QDir glibcLocaleDir(localeFileDirPath());
+     if (glibcLocaleDir.isEmpty()) {