From 2380a875b7fe3af974889ade92fbd745bd3e388b Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Mon, 28 Aug 2023 17:13:33 +0100 Subject: [PATCH] media-libs/glew: Rename new wayland-only flag to egl-only EGL is not Wayland-specific. It can be used with KMS, for example. Even X11 supports EGL, although GLEW doesn't seem to support that case. See https://github.com/nigels-com/glew/issues/328 for more details. Signed-off-by: James Le Cuirot --- media-libs/glew/glew-2.2.0-r1.ebuild | 6 +++--- media-libs/glew/metadata.xml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/media-libs/glew/glew-2.2.0-r1.ebuild b/media-libs/glew/glew-2.2.0-r1.ebuild index 5335393e4ec51..05123b7894e0e 100644 --- a/media-libs/glew/glew-2.2.0-r1.ebuild +++ b/media-libs/glew/glew-2.2.0-r1.ebuild @@ -12,12 +12,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tgz" LICENSE="BSD MIT" SLOT="0/$(ver_cut 1-2)" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" -IUSE="doc static-libs wayland-only" +IUSE="doc egl-only static-libs" DEPEND=" >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] - !wayland-only? ( + !egl-only? ( >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] @@ -54,7 +54,7 @@ src_prepare() { glew_system() { # Set the SYSTEM variable instead of probing. #523444 #595280 - if use wayland-only; then + if use egl-only; then echo "linux-egl" else case ${CHOST} in diff --git a/media-libs/glew/metadata.xml b/media-libs/glew/metadata.xml index 9dfc437a211da..f7add5ca6bd1e 100644 --- a/media-libs/glew/metadata.xml +++ b/media-libs/glew/metadata.xml @@ -9,4 +9,7 @@ nigels-com/glew glew + + Enable EGL support and disable X11 support +