commit: 4cd80cfb40e061830ec39f66512e7bfe74cbd477 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Tue Sep 9 20:59:45 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Tue Sep 9 22:03:50 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cd80cfb
games-action/armagetronad: Port away from libxml2 to curl Backports upstream MR to remain unbroken from libxml2-2.14. Closes: https://bugs.gentoo.org/955800 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> games-action/armagetronad/Manifest | 1 + .../armagetronad/armagetronad-0.2.9.2.3-r2.ebuild | 66 ++++++++++++++++++++++ 2 files changed, 67 insertions(+) diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest index bf493c1b8248..d413caa61971 100644 --- a/games-action/armagetronad/Manifest +++ b/games-action/armagetronad/Manifest @@ -1 +1,2 @@ +DIST armagetronad-0.2.9.2.3-libxml2-2.14.patch.xz 10516 BLAKE2B d01595479ad60706533e5848c055e2a998f56b204a95cb0c0abcbc0a173ed4dd5afbc75fcc8762baaaf01821943fe3e6f0f8d14f70e753ea774804352c420725 SHA512 8e79c6676814164f034f33f11e274fc59bb0fcdaf4bed5b138cb2f582683766792b1a0429b84b7c36b4831bdd2d5857d0ddd5de7f33278165a60ee89965aad0d DIST armagetronad-0.2.9.2.3.tbz 1834233 BLAKE2B 9b7d09ca7952ffe67a50be01c44adef81640e8cf222158477f66487ea89c7b25e1675bb9308ba71023ce045a4ea739891ce2273d5aa017cef2fa81128c71774c SHA512 813911a75fa1b3a90d99d62c0c38e9b325166623280c0d6a8217f8ca905b4a4617401db12bda898d82aa086a1bd673b31741b95b60b0f1247e6a5677a48c98eb diff --git a/games-action/armagetronad/armagetronad-0.2.9.2.3-r2.ebuild b/games-action/armagetronad/armagetronad-0.2.9.2.3-r2.ebuild new file mode 100644 index 000000000000..4682dd01a71e --- /dev/null +++ b/games-action/armagetronad/armagetronad-0.2.9.2.3-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools desktop + +DESCRIPTION="Fast-paced 3D lightcycle game based on Tron" +HOMEPAGE="https://www.armagetronad.org/" +SRC_URI="https://launchpad.net/armagetronad/$(ver_cut 1-3)/${PV}/+download/${P}.tbz + https://dev.gentoo.org/~asturm/distfiles/${P}-libxml2-2.14.patch.xz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="dedicated sound" +REQUIRED_USE="sound? ( !dedicated )" + +RDEPEND=" + net-misc/curl + !dedicated? ( + media-libs/libpng:0= + media-libs/libsdl[X,opengl,video,sound?] + media-libs/sdl-image[jpeg,png] + virtual/glu + virtual/opengl + sound? ( media-libs/sdl-mixer ) + )" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-0.2.9.1.0-AR.patch + "${WORKDIR}"/${P}-libxml2-2.14.patch # bug #955800, git master +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local econfargs=( + $(use_enable dedicated) + $(use_enable sound music) + # following options only mess with paths and users + --disable-games + --disable-sysinstall + --disable-uninstall + --disable-useradd + ) + econf ${econfargs[@]} +} + +src_install() { + # long history of being broken without -j1 (bug #330705,698020) + # do not remove (again) without a proper fix or extensive tests + emake -j1 DESTDIR="${D}" install + einstalldocs + + # handle misplaced .desktop / icons + if ! use dedicated; then + rm -r "${ED}"/usr/share/${PN}/desktop || die + doicon desktop/icons/48x48/armagetronad.png + make_desktop_entry ${PN} + fi +}
