From 3684f3f3bdba017c6aecc6910c542c5e3626bacb Mon Sep 17 00:00:00 2001
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
Date: Sat, 23 Nov 2019 10:53:55 +0100
Subject: [PATCH] kde-frameworks/plasma: rename USE=gles2 to USE=gles2-only

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
 kde-frameworks/plasma/metadata.xml                        | 3 ---
 .../{plasma-5.67.0-r2.ebuild => plasma-5.67.0-r3.ebuild}  | 8 ++++----
 .../{plasma-5.68.0.ebuild => plasma-5.68.0-r1.ebuild}     | 8 ++++----
 3 files changed, 8 insertions(+), 11 deletions(-)
 rename kde-frameworks/plasma/{plasma-5.67.0-r2.ebuild => plasma-5.67.0-r3.ebuild} (92%)
 rename kde-frameworks/plasma/{plasma-5.68.0.ebuild => plasma-5.68.0-r1.ebuild} (92%)

diff --git a/kde-frameworks/plasma/metadata.xml b/kde-frameworks/plasma/metadata.xml
index 6b9e8700315d..2fdbf33d963d 100644
--- a/kde-frameworks/plasma/metadata.xml
+++ b/kde-frameworks/plasma/metadata.xml
@@ -5,7 +5,4 @@
 		<email>kde@gentoo.org</email>
 		<name>Gentoo KDE Project</name>
 	</maintainer>
-	<use>
-		<flag name="gles2">Use GLES 2.0 or later instead of full OpenGL</flag>
-	</use>
 </pkgmetadata>
diff --git a/kde-frameworks/plasma/plasma-5.67.0-r2.ebuild b/kde-frameworks/plasma/plasma-5.67.0-r3.ebuild
similarity index 92%
rename from kde-frameworks/plasma/plasma-5.67.0-r2.ebuild
rename to kde-frameworks/plasma/plasma-5.67.0-r3.ebuild
index d790632f9e84..37b67199cb70 100644
--- a/kde-frameworks/plasma/plasma-5.67.0-r2.ebuild
+++ b/kde-frameworks/plasma/plasma-5.67.0-r3.ebuild
@@ -13,7 +13,7 @@ DESCRIPTION="Plasma framework"
 
 LICENSE="LGPL-2+"
 KEYWORDS="amd64 ~arm arm64 ~ppc64 x86"
-IUSE="gles2 wayland X"
+IUSE="gles2-only wayland X"
 
 # drop qtgui subslot operator when QT_MINIMAL >= 5.14.0
 BDEPEND="
@@ -22,7 +22,7 @@ BDEPEND="
 RDEPEND="
 	>=dev-qt/qtdbus-${QTMIN}:5
 	>=dev-qt/qtdeclarative-${QTMIN}:5
-	>=dev-qt/qtgui-${QTMIN}:5=[gles2=]
+	>=dev-qt/qtgui-${QTMIN}:5=[gles2-only=]
 	>=dev-qt/qtquickcontrols-${QTMIN}:5
 	>=dev-qt/qtsql-${QTMIN}:5
 	>=dev-qt/qtsvg-${QTMIN}:5
@@ -45,7 +45,7 @@ RDEPEND="
 	=kde-frameworks/kwidgetsaddons-${PVCUT}*:5
 	=kde-frameworks/kwindowsystem-${PVCUT}*:5
 	=kde-frameworks/kxmlgui-${PVCUT}*:5
-	!gles2? ( virtual/opengl )
+	!gles2-only? ( virtual/opengl )
 	wayland? (
 		=kde-frameworks/kwayland-${PVCUT}*:5
 		media-libs/mesa[egl]
@@ -69,7 +69,7 @@ PATCHES=(
 
 src_configure() {
 	local mycmakeargs=(
-		$(cmake_use_find_package !gles2 OpenGL)
+		$(cmake_use_find_package !gles2-only OpenGL)
 		$(cmake_use_find_package wayland EGL)
 		$(cmake_use_find_package wayland KF5Wayland)
 		$(cmake_use_find_package X X11)
diff --git a/kde-frameworks/plasma/plasma-5.68.0.ebuild b/kde-frameworks/plasma/plasma-5.68.0-r1.ebuild
similarity index 92%
rename from kde-frameworks/plasma/plasma-5.68.0.ebuild
rename to kde-frameworks/plasma/plasma-5.68.0-r1.ebuild
index 27066b6b7ad3..5ec5f22228ae 100644
--- a/kde-frameworks/plasma/plasma-5.68.0.ebuild
+++ b/kde-frameworks/plasma/plasma-5.68.0-r1.ebuild
@@ -13,7 +13,7 @@ DESCRIPTION="Plasma framework"
 
 LICENSE="LGPL-2+"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-IUSE="gles2 wayland X"
+IUSE="gles2-only wayland X"
 
 # drop qtgui subslot operator when QT_MINIMAL >= 5.14.0
 BDEPEND="
@@ -22,7 +22,7 @@ BDEPEND="
 RDEPEND="
 	>=dev-qt/qtdbus-${QTMIN}:5
 	>=dev-qt/qtdeclarative-${QTMIN}:5
-	>=dev-qt/qtgui-${QTMIN}:5=[gles2=]
+	>=dev-qt/qtgui-${QTMIN}:5=[gles2-only=]
 	>=dev-qt/qtquickcontrols-${QTMIN}:5
 	>=dev-qt/qtsql-${QTMIN}:5
 	>=dev-qt/qtsvg-${QTMIN}:5
@@ -45,7 +45,7 @@ RDEPEND="
 	=kde-frameworks/kwidgetsaddons-${PVCUT}*:5
 	=kde-frameworks/kwindowsystem-${PVCUT}*:5
 	=kde-frameworks/kxmlgui-${PVCUT}*:5
-	!gles2? ( virtual/opengl )
+	!gles2-only? ( virtual/opengl )
 	wayland? (
 		=kde-frameworks/kwayland-${PVCUT}*:5
 		media-libs/mesa[egl]
@@ -64,7 +64,7 @@ RESTRICT+=" test"
 
 src_configure() {
 	local mycmakeargs=(
-		$(cmake_use_find_package !gles2 OpenGL)
+		$(cmake_use_find_package !gles2-only OpenGL)
 		$(cmake_use_find_package wayland EGL)
 		$(cmake_use_find_package wayland KF5Wayland)
 		$(cmake_use_find_package X X11)
-- 
2.26.2