commit:     a81db9f5a1c5af77abb62563dd5b98ce4b6b20b4
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Dec  4 21:53:17 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Dec  4 21:53:17 2018 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=a81db9f5

kde-misc/yakuake: Add USE absolute-position, X

Bug: https://bugs.gentoo.org/672520
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 kde-misc/yakuake/metadata.xml        |  3 +++
 kde-misc/yakuake/yakuake-9999.ebuild | 21 ++++++++++++++++-----
 2 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/kde-misc/yakuake/metadata.xml b/kde-misc/yakuake/metadata.xml
index 2fdbf33d96..b62c302261 100644
--- a/kde-misc/yakuake/metadata.xml
+++ b/kde-misc/yakuake/metadata.xml
@@ -5,4 +5,7 @@
                <email>k...@gentoo.org</email>
                <name>Gentoo KDE Project</name>
        </maintainer>
+       <use>
+               <flag name="absolute-position">Use 
<pkg>kde-frameworks/kwayland</pkg> for absolute window positioning in 
KWin</flag>
+       </use>
 </pkgmetadata>

diff --git a/kde-misc/yakuake/yakuake-9999.ebuild 
b/kde-misc/yakuake/yakuake-9999.ebuild
index 10a82b7157..f9bfb2a6c9 100644
--- a/kde-misc/yakuake/yakuake-9999.ebuild
+++ b/kde-misc/yakuake/yakuake-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -13,7 +13,7 @@ if [[ ${KDE_BUILD_TYPE} != live ]]; then
 fi
 
 LICENSE="GPL-2 LGPL-2"
-IUSE=""
+IUSE="absolute-position X"
 
 DEPEND="
        $(add_frameworks_dep karchive)
@@ -31,7 +31,6 @@ DEPEND="
        $(add_frameworks_dep knotifyconfig)
        $(add_frameworks_dep kparts)
        $(add_frameworks_dep kservice)
-       $(add_frameworks_dep kwayland)
        $(add_frameworks_dep kwidgetsaddons)
        $(add_frameworks_dep kwindowsystem)
        $(add_frameworks_dep kxmlgui)
@@ -39,9 +38,21 @@ DEPEND="
        $(add_qt_dep qtdbus)
        $(add_qt_dep qtgui)
        $(add_qt_dep qtwidgets)
-       $(add_qt_dep qtx11extras)
-       x11-libs/libX11
+       absolute-position? ( $(add_frameworks_dep kwayland) )
+       X? (
+               $(add_qt_dep qtx11extras)
+               x11-libs/libX11
+       )
 "
 RDEPEND="${DEPEND}
        !kde-misc/yakuake:4
 "
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package absolute-position KF5Wayland)
+               $(cmake-utils_use_find_package X X11)
+       )
+
+       kde5_src_configure
+}

Reply via email to