git: ba7462c799de - main - devel/kf5-kidletime: track Wayland dependencies

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 12:15:10 UTC
The branch main has been updated by jbeich:

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

commit ba7462c799dead22efbd7107c4e24faa0642cb85
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-06-03 12:10:26 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-06-03 12:14:35 +0000

    devel/kf5-kidletime: track Wayland dependencies
    
    ====> Running Q/A tests (stage-qa)
    Error: /usr/local/lib/qt5/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeWaylandPlugin.so is linked to /usr/local/lib/qt5/libQt5WaylandClient.so.5 from graphics/qt5-wayland but it is not declared as a dependency
    Warning: you need USES=qt:5 and USE_QT+=wayland
    Error: /usr/local/lib/qt5/plugins/kf5/org.kde.kidletime.platforms/KF5IdleTimeWaylandPlugin.so is linked to /usr/local/lib/libwayland-client.so.0 from graphics/wayland but it is not declared as a dependency
    Warning: you need LIB_DEPENDS+=libwayland-client.so:graphics/wayland
    ====> Checking for pkg-plist issues (check-plist)
    ===> Parsing plist
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: %%QT_PLUGINDIR%%/kf5/org.kde.kidletime.platforms/KF5IdleTimeWaylandPlugin.so
    
    Inspired by:    Alpine Linux
---
 devel/kf5-kidletime/Makefile  | 8 ++++++--
 devel/kf5-kidletime/pkg-plist | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/devel/kf5-kidletime/Makefile b/devel/kf5-kidletime/Makefile
index 5750aa6a26a6..7b186110afe6 100644
--- a/devel/kf5-kidletime/Makefile
+++ b/devel/kf5-kidletime/Makefile
@@ -1,13 +1,17 @@
 PORTNAME=	kidletime
 DISTVERSION=	${KDE_FRAMEWORKS_VERSION}
+PORTREVISION=	1
 CATEGORIES=	devel kde kde-frameworks
 
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	KF5 library for monitoring user activity
 
+BUILD_DEPENDS=	wayland-protocols>=1.27:graphics/wayland-protocols
+LIB_DEPENDS=	libwayland-client.so:graphics/wayland
+
 USES=		cmake compiler:c++11-lib kde:5 pkgconfig qt:5 tar:xz xorg
-USE_KDE=	ecm:build
-USE_QT=		core dbus gui widgets x11extras \
+USE_KDE=	ecm:build plasma-wayland-protocols
+USE_QT=		core dbus gui wayland widgets x11extras \
 		buildtools:build qmake:build
 USE_XORG=	ice sm x11 xext xcb xscrnsaver
 
diff --git a/devel/kf5-kidletime/pkg-plist b/devel/kf5-kidletime/pkg-plist
index 0c389797f3ef..291a4228d48d 100644
--- a/devel/kf5-kidletime/pkg-plist
+++ b/devel/kf5-kidletime/pkg-plist
@@ -11,6 +11,7 @@ lib/libKF5IdleTime.so
 lib/libKF5IdleTime.so.5
 lib/libKF5IdleTime.so.%%KDE_FRAMEWORKS_VERSION%%
 %%QT_MKSPECDIR%%/modules/qt_KIdleTime.pri
+%%QT_PLUGINDIR%%/kf5/org.kde.kidletime.platforms/KF5IdleTimeWaylandPlugin.so
 %%QT_PLUGINDIR%%/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so
 %%QT_PLUGINDIR%%/kf5/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin1.so
 share/qlogging-categories5/kidletime.categories