From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-939510-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id AB962139694
	for <garchives@archives.gentoo.org>; Sun, 19 Mar 2017 00:09:20 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C9B9521C028;
	Sun, 19 Mar 2017 00:09:17 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A421A21C028
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2017 00:09:17 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8C6AE33E142
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2017 00:09:16 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 32EA46647
	for <gentoo-commits@lists.gentoo.org>; Sun, 19 Mar 2017 00:09:15 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1489882011.c848a2355c8ede11b283cd40babf915c60700f2c.asturm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/plasma/
X-VCS-Repository: repo/gentoo
X-VCS-Files: kde-frameworks/plasma/plasma-5.32.0-r1.ebuild
X-VCS-Directories: kde-frameworks/plasma/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: c848a2355c8ede11b283cd40babf915c60700f2c
X-VCS-Branch: master
Date: Sun, 19 Mar 2017 00:09:15 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 0a717417-d5f8-4b13-83b8-9b3a26bf9021
X-Archives-Hash: d1e4174c464972a859a9e43538383d3e

commit:     c848a2355c8ede11b283cd40babf915c60700f2c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 18 13:53:21 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 19 00:06:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c848a235

kde-frameworks/plasma: Drop USE=egl and tie it together w/ USE=wayland

In short: X11 default is GLX with no UI handle to change it, on Wayland
EGL is required. It is then much simpler to drop USE=egl and enable
EGL support together with the wayland USE flag.

See also:
https://blog.martin-graesslin.com/blog/2016/08/opengl-changes-in-kwin-compositing/

Reported-by:  Martijn Schmidt <martijn.schmidt <AT> gmail.com>
Gentoo-bug: 610892

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 kde-frameworks/plasma/plasma-5.32.0-r1.ebuild | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/kde-frameworks/plasma/plasma-5.32.0-r1.ebuild b/kde-frameworks/plasma/plasma-5.32.0-r1.ebuild
index ba8af05f8de..21e3b71251c 100644
--- a/kde-frameworks/plasma/plasma-5.32.0-r1.ebuild
+++ b/kde-frameworks/plasma/plasma-5.32.0-r1.ebuild
@@ -10,7 +10,7 @@ inherit kde5
 DESCRIPTION="Plasma framework"
 LICENSE="LGPL-2+"
 KEYWORDS="~amd64 ~arm ~x86"
-IUSE="egl gles2 wayland X"
+IUSE="gles2 wayland X"
 
 COMMON_DEPEND="
 	$(add_frameworks_dep kactivities)
@@ -36,9 +36,11 @@ COMMON_DEPEND="
 	$(add_qt_dep qtsql)
 	$(add_qt_dep qtsvg)
 	$(add_qt_dep qtwidgets)
-	egl? ( media-libs/mesa[egl] )
 	!gles2? ( virtual/opengl )
-	wayland? ( $(add_frameworks_dep kwayland) )
+	wayland? (
+		$(add_frameworks_dep kwayland)
+		media-libs/mesa[egl]
+	)
 	X? (
 		$(add_qt_dep qtx11extras)
 		x11-libs/libX11
@@ -59,8 +61,8 @@ PATCHES=( "${FILESDIR}/${P}-prefix-qstringlist.patch" )
 
 src_configure() {
 	local mycmakeargs=(
-		$(cmake-utils_use_find_package egl EGL)
 		$(cmake-utils_use_find_package !gles2 OpenGL)
+		$(cmake-utils_use_find_package wayland EGL)
 		$(cmake-utils_use_find_package wayland KF5Wayland)
 		$(cmake-utils_use_find_package X X11)
 		$(cmake-utils_use_find_package X XCB)