From af86b7244bf1c4335762fcf6fd5aed9735d5743f Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 3 Mar 2024 17:24:08 +0100 Subject: dev-libs/plasma-wayland-protocols: Use cmake instead of ecm.eclass The latter was just overkill for the needs of this simple build system, this ensures that it works for Qt5/Qt6 "purity" builds alike. Bug: https://bugs.gentoo.org/923502 Closes: https://github.com/gentoo/kde/pull/980 Signed-off-by: Andreas Sturmlechner --- .../plasma-wayland-protocols-9999.ebuild | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'dev-libs') diff --git a/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild b/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild index 96a44c879a..05f74e583c 100644 --- a/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild +++ b/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild @@ -3,9 +3,7 @@ EAPI=8 -ECM_NONGUI=true -KFMIN=5.115.0 -inherit ecm kde.org +inherit cmake kde.org DESCRIPTION="Plasma Specific Protocols for Wayland" HOMEPAGE="https://invent.kde.org/libraries/plasma-wayland-protocols" @@ -17,3 +15,21 @@ fi LICENSE="LGPL-2.1" SLOT="0" + +BDEPEND=" + dev-libs/libpcre2:* + >=kde-frameworks/extra-cmake-modules-5.115.0:* + || ( + dev-qt/qtbase:6 + dev-qt/qtcore:5 + ) +" + +ecm_src_configure() { + local mycmakeargs=( + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON # ecm.eclass + -DKDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" # ecm.eclass + ) + + cmake_src_configure +} -- cgit v1.2.3-65-gdbad