games-arcade/commandergenius: Drop old 2.4.0-r1

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot 2025-11-24 12:18:02 +00:00
parent f2d7872ae5
commit 37d74a15b5
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137
4 changed files with 0 additions and 128 deletions

View File

@ -1,2 +1 @@
DIST Commander-Genius-v2.4.0.tar.bz2 62351265 BLAKE2B 0a3338bee2e494f415ce5072978f050766fff16e5df5e7b27824fb4d4c699d2e5a690924f339189325383bee273cbfa5424f43aa9dc87ae4abf63c7cbf1ea6cd SHA512 76eda96fade00d164d3ea5b95acadfb28a3b24864a5ce3f2c9317837a1027cd8d0282a474b8d25bacc26008a26a6adc5062ee655f9abd350d44db58aa70d3b3b
DIST Commander-Genius-v3.6.1.tar.bz2 55509384 BLAKE2B 2b98d9629128f0fe7b0d688d79d695b0cf3f36f13c009b81537a1bedc6bb04d15ef0fc17634af5692c3d022a40e098c83c2601862b9a2579db049ec471ad72e9 SHA512 d0e2a074c75d2634900d31308fe42c117f676c4d88786a977207f25cedf6ec22b365098176de24109ba2d50c4c693f29dd11dd6edce50aaafc043c5fa205b20a

View File

@ -1,93 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# note: version >=2.5.0 switches from python to lua
PYTHON_COMPAT=( python3_{11..13} python3_13t )
inherit cmake flag-o-matic python-single-r1 xdg
MY_P=Commander-Genius-v${PV}
DESCRIPTION="Open Source Commander Keen clone (needs original game files)"
HOMEPAGE="https://clonekeenplus.sourceforge.io/"
SRC_URI="https://gitlab.com/Dringgstein/Commander-Genius/-/archive/v${PV}/${MY_P}.tar.bz2"
S=${WORKDIR}/${MY_P}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+downloader opengl +python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="mirror" # contains keen files, but we do not install them
RDEPEND="
media-libs/libsdl2[opengl?,video]
media-libs/sdl2-image
media-libs/sdl2-mixer[vorbis]
media-libs/sdl2-ttf
virtual/minizip:=
downloader? ( net-misc/curl )
opengl? ( virtual/opengl )
python? ( ${PYTHON_DEPS} )
"
DEPEND="
${RDEPEND}
dev-libs/boost
"
BDEPEND="python? ( ${PYTHON_DEPS} )"
PATCHES=(
"${FILESDIR}"/${PN}-2.3.1-build.patch
"${FILESDIR}"/${PN}-2.3.1-paths.patch
"${FILESDIR}"/${P}-gcc13.patch
)
pkg_setup() {
use python && python-single-r1_pkg_setup
}
src_configure() {
filter-lto #858530
local mycmakeargs=(
-DAPPDIR="${EPREFIX}"/usr/bin
-DDOCDIR="${EPREFIX}"/usr/share/doc/${PF}
-DGAMES_SHAREDIR="${EPREFIX}"/usr/share
-DDOWNLOADER=$(usex downloader)
-DUSE_OPENGL=$(usex opengl)
-DUSE_PYTHON3=$(usex python)
-DUSE_SDL2=yes
-DUSE_SDL_TTF=yes # crashes when disabled
$(usev python -DPython3_EXECUTABLE="${PYTHON}")
)
cmake_src_configure
}
src_install() {
local DOCS=() # skip .in template file, can drop this on bump
cmake_src_install
# default executable name is weird
dosym CGeniusExe /usr/bin/${PN}
# game data can be manually installed here
keepdir /usr/share/${PN}/games
}
pkg_postinst() {
xdg_pkg_postinst
elog "Run ${PN} to start the game. It will search for game data"
elog "in ~/.CommanderGenius/games and ${EPREFIX}${GAMESDIR}."
elog "You can also specify paths in cgenius.cfg or pass paths as an"
elog "argument."
elog
use downloader && elog "Data for some games can be downloaded from the menu."
elog
elog "Check your settings in ~/.CommanderGenius/cgenius.cfg after you have"
elog "started the game for the first time."
elog
use opengl && elog "You may also want to set \"OpenGL = true\"."
}

View File

@ -1,11 +0,0 @@
diff -Naur a/GsKit/base/utils/FindFile.cpp b/GsKit/base/utils/FindFile.cpp
--- a/GsKit/base/utils/FindFile.cpp 2019-02-08 15:17:29.000000000 +0000
+++ b/GsKit/base/utils/FindFile.cpp 2019-02-19 23:14:32.299939859 +0000
@@ -493,7 +493,6 @@
#else
AddToFileList(&basesearchpaths, "${HOME}/.CommanderGenius");
#endif
- AddToFileList(&basesearchpaths, ".");
AddToFileList(&basesearchpaths, SYSTEM_DATA_DIR"/commandergenius"); // no use of ${SYSTEM_DATA}, because it is uncommon and could cause confusion to the user
#endif
}

View File

@ -1,23 +0,0 @@
https://gitlab.com/Dringgstein/Commander-Genius/-/commit/f9fb2808acfca598fe6e6963c84fe9afe5bcd89e
From f9fb2808acfca598fe6e6963c84fe9afe5bcd89e Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Tue, 28 Mar 2023 10:56:06 +0200
Subject: [PATCH] build: resolve compile error with gcc-13
GsKit/base/utils/Unicode.h:16:9: error: 'uint32_t' does not name a type
GsKit/base/utils/Unicode.h:17:27: error: 'UnicodeChar' was not declared in this scope
GsKit/base/utils/Unicode.h:17:38: error: template argument 1 is invalid
...
--- a/GsKit/base/utils/Unicode.h
+++ b/GsKit/base/utils/Unicode.h
@@ -11,6 +11,7 @@
#ifndef __UNICODE_H__
#define __UNICODE_H__
+#include <cstdint>
#include <string>
typedef uint32_t UnicodeChar;
--
GitLab