commit:     33ce6ae80b24b231e526d388109a780dd84ca202
Author:     William Breathitt Gray <vilhelm.gray <AT> gmail <DOT> com>
AuthorDate: Thu Feb  3 08:21:12 2022 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Feb  3 09:11:53 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33ce6ae8

games-engines/odamex: Disable find_package(x11) only for client

Closes: https://bugs.gentoo.org/832449
Signed-off-by: William Breathitt Gray <vilhelm.gray <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/24063
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 games-engines/odamex/odamex-0.9.5.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/games-engines/odamex/odamex-0.9.5.ebuild 
b/games-engines/odamex/odamex-0.9.5.ebuild
index 62d3c471ea58..56b4b013e2cf 100644
--- a/games-engines/odamex/odamex-0.9.5.ebuild
+++ b/games-engines/odamex/odamex-0.9.5.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 WX_GTK_VER="3.0-gtk3"
 inherit cmake desktop prefix wxwidgets xdg
@@ -49,7 +49,6 @@ src_prepare() {
 
 src_configure() {
        local mycmakeargs=(
-               -DCMAKE_DISABLE_FIND_PACKAGE_X11=$(usex !X)
                -DUSE_INTERNAL_LIBS=0
                -DBUILD_CLIENT=$(usex client)
                -DBUILD_LAUNCHER=$(usex odalaunch)
@@ -59,6 +58,7 @@ 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