commit:     418879765756a0882e61b53498271674a96e9b9a
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Aug  2 08:28:12 2022 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Sep 24 08:48:15 2022 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=41887976

kde-frameworks/knotifications: Fix build with USE -X

Upstream commit 0450e434116acdc640b0c8256228feec8b363e47

Bug: https://bugs.gentoo.org/813450
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-frameworks/knotifications/knotifications-9999.ebuild | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/kde-frameworks/knotifications/knotifications-9999.ebuild 
b/kde-frameworks/knotifications/knotifications-9999.ebuild
index 8f5e502a06..168e524bd4 100644
--- a/kde-frameworks/knotifications/knotifications-9999.ebuild
+++ b/kde-frameworks/knotifications/knotifications-9999.ebuild
@@ -9,6 +9,7 @@ QTMIN=5.15.5
 inherit ecm frameworks.kde.org
 
 DESCRIPTION="Framework for notifying the user of an event"
+
 LICENSE="LGPL-2.1+"
 KEYWORDS=""
 IUSE="dbus nls phonon qml speech X"
@@ -19,7 +20,7 @@ RDEPEND="
        >=dev-qt/qtwidgets-${QTMIN}:5
        =kde-frameworks/kconfig-${PVCUT}*:5
        =kde-frameworks/kcoreaddons-${PVCUT}*:5
-       =kde-frameworks/kwindowsystem-${PVCUT}*:5[X=]
+       =kde-frameworks/kwindowsystem-${PVCUT}*:5[X?]
        dbus? ( dev-libs/libdbusmenu-qt[qt5(+)] )
        !phonon? ( media-libs/libcanberra )
        phonon? ( >=media-libs/phonon-4.11.0 )
@@ -34,9 +35,7 @@ RDEPEND="
 DEPEND="${RDEPEND}
        X? ( x11-base/xorg-proto )
 "
-BDEPEND="
-       nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
-"
+BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )"
 
 src_configure() {
        local mycmakeargs=(
@@ -44,7 +43,7 @@ src_configure() {
                $(cmake_use_find_package !phonon Canberra)
                $(cmake_use_find_package qml Qt5Qml)
                $(cmake_use_find_package speech Qt5TextToSpeech)
-               $(cmake_use_find_package X X11)
+               -DWITHOUT_X11=$(usex !X)
        )
 
        ecm_src_configure

Reply via email to