commit:     9a1f3125c8ba442cfe11e45468ca9ccfa35d4a17
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  7 13:10:39 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Dec  7 13:11:23 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=9a1f3125

dev-libs/plasma-wayland-protocols: Add IUSE test

Upstream commit 9123b73204cd82f404a538125e553de1bb52cc5b

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild    | 5 +++++
 1 file changed, 5 insertions(+)

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 05f74e583c..d83e0fd9b8 100644
--- a/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild
+++ b/dev-libs/plasma-wayland-protocols/plasma-wayland-protocols-9999.ebuild
@@ -15,7 +15,10 @@ fi
 
 LICENSE="LGPL-2.1"
 SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
 
+DEPEND="test? ( dev-libs/wayland )"
 BDEPEND="
        dev-libs/libpcre2:*
        >=kde-frameworks/extra-cmake-modules-5.115.0:*
@@ -23,12 +26,14 @@ BDEPEND="
                dev-qt/qtbase:6
                dev-qt/qtcore:5
        )
+       test? ( dev-util/wayland-scanner )
 "
 
 ecm_src_configure() {
        local mycmakeargs=(
                -DKDE_INSTALL_USE_QT_SYS_PATHS=ON # ecm.eclass
                -DKDE_INSTALL_DOCBUNDLEDIR="${EPREFIX}/usr/share/help" # 
ecm.eclass
+               -DBUILD_TESTING=$(usex test)
        )
 
        cmake_src_configure

Reply via email to