Skip to content

Commit

Permalink
games-action/teeworlds: enable py3.12 + tidy
Browse files Browse the repository at this point in the history
-DPYTHON_EXECUTABLE is no longer necessary, handled by cmake.eclass
(uses the right python from a quick look)

fwiw revbump to update python-any-r1 BDEPEND given this rarely gets
bumps

Closes: https://bugs.gentoo.org/929567
Signed-off-by: Ionen Wolkens <[email protected]>
  • Loading branch information
ionenwks committed May 5, 2024
1 parent baa52b0 commit 40f06f1
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{9..11} )
PYTHON_COMPAT=( python3_{10..12} )
inherit cmake desktop flag-o-matic python-any-r1

DESCRIPTION="Online multi-player platform 2D shooter"
HOMEPAGE="https://www.teeworlds.com/"
SRC_URI="
https://github.com/teeworlds/teeworlds/releases/download/${PV}/teeworlds-${PV}-src.tar.gz
https://dev.gentoo.org/~ionen/distfiles/${PN}.png"
S="${WORKDIR}/${P}-src"
https://dev.gentoo.org/~ionen/distfiles/${PN}.png
"
S=${WORKDIR}/${P}-src

LICENSE="ZLIB"
SLOT="0"
Expand All @@ -27,7 +28,8 @@ RDEPEND="
media-sound/wavpack
)
dev-libs/openssl:=
sys-libs/zlib:="
sys-libs/zlib:=
"
DEPEND="${RDEPEND}"
BDEPEND="${PYTHON_DEPS}"

Expand All @@ -37,7 +39,6 @@ src_configure() {
local mycmakeargs=(
-DCLIENT=$(usex !dedicated)
-DCMAKE_DISABLE_FIND_PACKAGE_X11=yes # unused
-DPYTHON_EXECUTABLE="${PYTHON}"
)

cmake_src_configure
Expand Down

0 comments on commit 40f06f1

Please sign in to comment.