commit:     7ccda3b5f6189c21ad8c1740a38fad3ea3960f0c
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 20 18:12:39 2016 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed Jul 20 18:12:44 2016 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=7ccda3b5

kde-plasma/oxygen: introduce wayland USE flag

Package-Manager: portage-2.3.0

 kde-plasma/oxygen/oxygen-5.7.49.9999.ebuild | 12 ++++++++++--
 kde-plasma/oxygen/oxygen-9999.ebuild        | 12 ++++++++++--
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/kde-plasma/oxygen/oxygen-5.7.49.9999.ebuild 
b/kde-plasma/oxygen/oxygen-5.7.49.9999.ebuild
index f78559e..d33bc3f 100644
--- a/kde-plasma/oxygen/oxygen-5.7.49.9999.ebuild
+++ b/kde-plasma/oxygen/oxygen-5.7.49.9999.ebuild
@@ -9,7 +9,7 @@ inherit kde5
 DESCRIPTION="KDE window manager theme"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/oxygen";
 KEYWORDS=""
-IUSE=""
+IUSE="wayland"
 
 RDEPEND="
        $(add_frameworks_dep frameworkintegration)
@@ -20,7 +20,6 @@ RDEPEND="
        $(add_frameworks_dep kcoreaddons)
        $(add_frameworks_dep kguiaddons)
        $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kwayland)
        $(add_frameworks_dep kwidgetsaddons)
        $(add_frameworks_dep kwindowsystem)
        $(add_plasma_dep kdecoration)
@@ -29,9 +28,18 @@ RDEPEND="
        $(add_qt_dep qtwidgets)
        $(add_qt_dep qtx11extras)
        x11-libs/libxcb
+       wayland? ( $(add_frameworks_dep kwayland) )
        !kde-base/kdebase-cursors:4
        !kde-base/oxygen:4
 "
 DEPEND="${RDEPEND}
        $(add_frameworks_dep kservice)
 "
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package wayland KF5Wayland)
+       )
+
+       kde5_src_configure
+}

diff --git a/kde-plasma/oxygen/oxygen-9999.ebuild 
b/kde-plasma/oxygen/oxygen-9999.ebuild
index f78559e..d33bc3f 100644
--- a/kde-plasma/oxygen/oxygen-9999.ebuild
+++ b/kde-plasma/oxygen/oxygen-9999.ebuild
@@ -9,7 +9,7 @@ inherit kde5
 DESCRIPTION="KDE window manager theme"
 HOMEPAGE="https://projects.kde.org/projects/kde/workspace/oxygen";
 KEYWORDS=""
-IUSE=""
+IUSE="wayland"
 
 RDEPEND="
        $(add_frameworks_dep frameworkintegration)
@@ -20,7 +20,6 @@ RDEPEND="
        $(add_frameworks_dep kcoreaddons)
        $(add_frameworks_dep kguiaddons)
        $(add_frameworks_dep ki18n)
-       $(add_frameworks_dep kwayland)
        $(add_frameworks_dep kwidgetsaddons)
        $(add_frameworks_dep kwindowsystem)
        $(add_plasma_dep kdecoration)
@@ -29,9 +28,18 @@ RDEPEND="
        $(add_qt_dep qtwidgets)
        $(add_qt_dep qtx11extras)
        x11-libs/libxcb
+       wayland? ( $(add_frameworks_dep kwayland) )
        !kde-base/kdebase-cursors:4
        !kde-base/oxygen:4
 "
 DEPEND="${RDEPEND}
        $(add_frameworks_dep kservice)
 "
+
+src_configure() {
+       local mycmakeargs=(
+               $(cmake-utils_use_find_package wayland KF5Wayland)
+       )
+
+       kde5_src_configure
+}

Reply via email to