commit:     f4a6d15842cd05117e24f86d8bf1dd2ad4860fb1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 16:24:08 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 16:37:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4a6d158

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.

Closes: https://bugs.gentoo.org/923502
Closes: https://github.com/gentoo/kde/pull/980
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 ...ld => plasma-wayland-protocols-1.12.0-r1.ebuild} | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git 
a/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0.ebuild 
b/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0-r1.ebuild
similarity index 54%
rename from 
dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0.ebuild
rename to 
dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0-r1.ebuild
index 5a9c09e22f1e..ad0d538fed5b 100644
--- a/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0.ebuild
+++ 
b/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-1.12.0-r1.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=8
 
-ECM_NONGUI=true
-inherit ecm kde.org
+inherit cmake kde.org
 
 DESCRIPTION="Plasma Specific Protocols for Wayland"
 HOMEPAGE="https://invent.kde.org/libraries/plasma-wayland-protocols";
@@ -16,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
+}

Reply via email to