git: e9bacd8754ba - main - x11/plasma5-plasma-desktop: add OPTIONal dependencies on KAccounts and KUserFeedback

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Thu, 18 Aug 2022 22:04:12 UTC
The branch main has been updated by fluffy:

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

commit e9bacd8754ba65acad948624fa6ab295d855a0ff
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2022-08-18 22:02:20 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2022-08-18 22:02:20 +0000

    x11/plasma5-plasma-desktop: add OPTIONal dependencies on KAccounts and KUserFeedback
---
 x11/plasma5-plasma-desktop/Makefile  | 13 +++++++++++--
 x11/plasma5-plasma-desktop/pkg-plist |  8 ++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/x11/plasma5-plasma-desktop/Makefile b/x11/plasma5-plasma-desktop/Makefile
index b0ff6bf9e729..bdcb5a4d0bc5 100644
--- a/x11/plasma5-plasma-desktop/Makefile
+++ b/x11/plasma5-plasma-desktop/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	plasma-desktop
 DISTVERSION=	${KDE_PLASMA_VERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11 kde kde-plasma
 
 MAINTAINER=	kde@FreeBSD.org
@@ -19,10 +19,12 @@ LIB_DEPENDS=	libboost_system.so:devel/boost-libs \
 RUN_DEPENDS=	iso-codes>=0:misc/iso-codes \
 		xf86-input-evdev>0:x11-drivers/xf86-input-evdev \
 		xf86-input-libinput>0:x11-drivers/xf86-input-libinput \
+		xdg-user-dir:devel/xdg-user-dirs \
 		setxkbmap:x11/setxkbmap
 BUILD_DEPENDS=	xf86-input-evdev>0:x11-drivers/xf86-input-evdev \
 		xf86-input-synaptics>0:x11-drivers/xf86-input-synaptics \
-		xf86-input-libinput>0:x11-drivers/xf86-input-libinput
+		xf86-input-libinput>0:x11-drivers/xf86-input-libinput \
+		xdg-user-dir:devel/xdg-user-dirs
 
 USES=		cmake compiler:c++11-lib cpe desktop-file-utils gettext gnome \
 		kde:5 pkgconfig python:3.5+,run qt:5 shebangfix tar:xz xorg
@@ -53,6 +55,8 @@ SHEBANG_FILES=	kcms/ksmserver/kconf_update/*.py \
 
 OPTIONS_SUB=	yes
 
+OPTIONS_DEFINE=		ACCOUNTS FEEDBACK
+OPTIONS_DEFAULT=	ACCOUNTS FEEDBACK
 OPTIONS_GROUP=		IM
 OPTIONS_GROUP_IM=	IBUS SCIM
 IM_DESC=		Input Method Support
@@ -63,6 +67,11 @@ IBUS_DESC=		Enable IBUS backend for input dialog
 SCIM_CMAKE_BOOL_OFF=	CMAKE_DISABLE_FIND_PACKAGE_SCIM
 SCIM_LIB_DEPENDS=	libscim-1.0.so:textproc/scim
 SCIM_DESC=		Enable SCIM backend for input dialog
+ACCOUNTS_LIB_DEPENDS=	libkaccounts.so:net-im/kaccounts-integration
+ACCOUNTS_USE=		gnome=intltool
+ACCOUNTS_DESC=		Accounts management library support
+FEEDBACK_LIB_DEPENDS=	libKUserFeedbackCore.so:deskutils/kuserfeedback
+FEEDBACK_DESC=		Collecting user feedback
 
 post-patch:
 # Set the correct iso-codes directory
diff --git a/x11/plasma5-plasma-desktop/pkg-plist b/x11/plasma5-plasma-desktop/pkg-plist
index c5d8f8481db6..62cb5bd9c8b8 100644
--- a/x11/plasma5-plasma-desktop/pkg-plist
+++ b/x11/plasma5-plasma-desktop/pkg-plist
@@ -11,6 +11,7 @@ lib/libexec/kauth/kcmdatetimehelper
 %%IBUS%%lib/libexec/kimpanel-ibus-panel
 %%IBUS%%lib/libexec/kimpanel-ibus-panel-launcher
 %%SCIM%%lib/libexec/kimpanel-scim-panel
+%%ACCOUNTS%%%%QT_PLUGINDIR%%/attica_kde.so
 %%QT_PLUGINDIR%%/kf5/kded/device_automounter.so
 %%QT_PLUGINDIR%%/kf5/kded/kded_touchpad.so
 %%QT_PLUGINDIR%%/kf5/kded/keyboard.so
@@ -45,6 +46,8 @@ lib/libexec/kauth/kcmdatetimehelper
 %%QT_QMLDIR%%/org/kde/activities/settings/qmldir
 %%QT_QMLDIR%%/org/kde/plasma/activityswitcher/libactivityswitcherextensionplugin.so
 %%QT_QMLDIR%%/org/kde/plasma/activityswitcher/qmldir
+%%ACCOUNTS%%%%QT_QMLDIR%%/org/kde/plasma/emoji/libEmojierDeclarativePlugin.so
+%%ACCOUNTS%%%%QT_QMLDIR%%/org/kde/plasma/emoji/qmldir
 %%QT_QMLDIR%%/org/kde/plasma/private/kimpanel/libkimpanelplugin.so
 %%QT_QMLDIR%%/org/kde/plasma/private/kimpanel/qmldir
 %%QT_QMLDIR%%/org/kde/plasma/private/pager/libpagerplugin.so
@@ -59,6 +62,8 @@ lib/libexec/kauth/kcmdatetimehelper
 %%QT_QMLDIR%%/org/kde/private/desktopcontainment/desktop/qmldir
 %%QT_QMLDIR%%/org/kde/private/desktopcontainment/folder/libfolderplugin.so
 %%QT_QMLDIR%%/org/kde/private/desktopcontainment/folder/qmldir
+%%ACCOUNTS%%share/accounts/providers/kde/opendesktop.provider
+%%ACCOUNTS%%share/accounts/services/kde/opendesktop-rating.service
 share/applications/kcm_touchpad.desktop
 share/applications/kcm_access.desktop
 share/applications/kcm_activities.desktop
@@ -81,12 +86,14 @@ share/applications/kcm_tablet.desktop
 share/applications/kcm_workspace.desktop
 share/applications/kcmspellchecking.desktop
 share/applications/org.kde.knetattach.desktop
+%%ACCOUNTS%%share/applications/org.kde.plasma.emojier.desktop
 share/config.kcfg/kactivitymanagerd_plugins_settings.kcfg
 share/config.kcfg/kactivitymanagerd_settings.kcfg
 share/config.kcfg/kcmaccessibilitybell.kcfg
 share/config.kcfg/kcmaccessibilitykeyboard.kcfg
 share/config.kcfg/kcmaccessibilitymouse.kcfg
 share/config.kcfg/kcmaccessibilityscreenreader.kcfg
+%%FEEDBACK%%share/config.kcfg/landingpage_feedbacksettings.kcfg
 share/config.kcfg/landingpage_kdeglobalssettings.kcfg
 share/config.kcfg/launchfeedbacksettingsbase.kcfg
 share/config.kcfg/splashscreensettings.kcfg
@@ -748,6 +755,7 @@ share/kf5/kactivitymanagerd/workspace/settings/qml/activitiesTab/ActivitiesView.
 share/kf5/kactivitymanagerd/workspace/settings/qml/activitiesTab/main.qml
 share/kf5/kactivitymanagerd/workspace/settings/qml/activityDialog/GeneralTab.qml
 share/kf5/kactivitymanagerd/workspace/settings/qml/privacyTab/BlacklistApplicationView.qml
+%%ACCOUNTS%%share/kglobalaccel/org.kde.plasma.emojier.desktop
 share/knotifications5/kaccess.notifyrc
 share/knotifications5/kcm_touchpad.notifyrc
 share/knsrcfiles/krunner.knsrc