commit:     3a5147fd75c8379c85b89796b678cd1197538843
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 18 14:43:29 2023 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Jan 18 15:14:13 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a5147fd

games-action/teeworlds: EAPI7->8, pass no-strict, enable py3.11

Also adjust deps a bit. May be possible to drop [X] on libglvnd
but the CMakeLists explicitly requests the legacy version (GLX).

Closes: https://bugs.gentoo.org/858524
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 ...s-0.7.5-r1.ebuild => teeworlds-0.7.5-r2.ebuild} | 26 +++++++++++-----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/games-action/teeworlds/teeworlds-0.7.5-r1.ebuild 
b/games-action/teeworlds/teeworlds-0.7.5-r2.ebuild
similarity index 72%
rename from games-action/teeworlds/teeworlds-0.7.5-r1.ebuild
rename to games-action/teeworlds/teeworlds-0.7.5-r2.ebuild
index 88f0ed346022..ad55df8bd5ba 100644
--- a/games-action/teeworlds/teeworlds-0.7.5-r1.ebuild
+++ b/games-action/teeworlds/teeworlds-0.7.5-r2.ebuild
@@ -1,11 +1,10 @@
 # Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
-PYTHON_COMPAT=( python3_{9..10} )
-
-inherit cmake desktop python-any-r1
+PYTHON_COMPAT=( python3_{9..11} )
+inherit cmake desktop flag-o-matic python-any-r1
 
 DESCRIPTION="Online multi-player platform 2D shooter"
 HOMEPAGE="https://www.teeworlds.com/";
@@ -21,26 +20,27 @@ IUSE="debug dedicated"
 
 RDEPEND="
        !dedicated? (
-               app-arch/bzip2:=
                media-libs/freetype
-               media-libs/libsdl2[X,sound,opengl,video]
+               media-libs/libglvnd[X]
+               media-libs/libsdl2[sound,opengl,video]
                media-libs/pnglite
                media-sound/wavpack
-               virtual/glu
-               virtual/opengl
-               x11-libs/libX11
        )
-       dev-libs/openssl:0=
-       sys-libs/zlib"
+       dev-libs/openssl:=
+       sys-libs/zlib:="
 DEPEND="${RDEPEND}"
 BDEPEND="${PYTHON_DEPS}"
 
 src_configure() {
+       append-flags -fno-strict-aliasing #858524
+
        local mycmakeargs=(
-               -DCLIENT=$(usex dedicated OFF ON)
-               -DDEV=$(usex debug ON OFF)
+               -DCLIENT=$(usex !dedicated)
+               -DCMAKE_DISABLE_FIND_PACKAGE_X11=yes # unused
+               -DDEV=$(usex debug)
                -DPYTHON_EXECUTABLE="${PYTHON}"
        )
+
        cmake_src_configure
 }
 

Reply via email to