commit:     281de830dfe4c182cce589b1befa90cf946e5a29
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 30 22:18:19 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sat Mar 30 22:20:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281de830

games-engines/odamex: Unconditionally depend on X11

Although the SDL-based client itself doesn't strictly need X11, the FLTK-based
launcher currently does, regardless of whether you use the bundled FLTK or not,
so we might as well depend on X11 unconditionally.

Conversely, the wxWidgets-based odalaunch doesn't need X11 and seems to work
fine under pure Wayland, so adjust the wxGTK dependency accordingly.

Closes: https://bugs.gentoo.org/890299
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 .../odamex/{odamex-10.4.0-r2.ebuild => odamex-10.4.0-r3.ebuild}    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/games-engines/odamex/odamex-10.4.0-r2.ebuild 
b/games-engines/odamex/odamex-10.4.0-r3.ebuild
similarity index 91%
rename from games-engines/odamex/odamex-10.4.0-r2.ebuild
rename to games-engines/odamex/odamex-10.4.0-r3.ebuild
index 97ddf96efce4..de72a4d61655 100644
--- a/games-engines/odamex/odamex-10.4.0-r2.ebuild
+++ b/games-engines/odamex/odamex-10.4.0-r3.ebuild
@@ -13,7 +13,7 @@ 
SRC_URI="https://github.com/${PN}/${PN}/releases/download/${PV}/${PN}-src-${PV}.
 LICENSE="GPL-2+ MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
-IUSE="+client hidpi master +odalaunch portmidi server upnp X"
+IUSE="+client hidpi master +odalaunch portmidi server upnp"
 REQUIRED_USE="|| ( client master server )"
 
 # protobuf is still bundled. Unfortunately an old version is required for C++98
@@ -26,11 +26,11 @@ RDEPEND="
                media-libs/libsdl2[joystick,sound,video]
                media-libs/sdl2-mixer
                net-misc/curl
+               x11-libs/libX11
                !hidpi? ( x11-libs/fltk:1 )
                portmidi? ( media-libs/portmidi )
-               X? ( x11-libs/libX11 )
        )
-       odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
+       odalaunch? ( x11-libs/wxGTK:${WX_GTK_VER} )
        server? (
                dev-libs/jsoncpp:=
                upnp? ( net-libs/miniupnpc:= )
@@ -70,7 +70,6 @@ src_configure() {
                -DENABLE_PORTMIDI=$(usex portmidi)
                -DUSE_MINIUPNP=$(usex upnp)
        )
-       use client && mycmakeargs+=(-DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X))
 
        cmake_src_configure
 }

Reply via email to