commit: fba6409d8cf378fb9efb112c833a2c91289e0186 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Thu Feb 5 13:03:13 2026 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Thu Feb 5 13:03:13 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fba6409d
games-board/sjeng: update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/943957 Signed-off-by: David Seifert <soap <AT> gentoo.org> games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch | 20 ++++++++++++++++++++ ...-11.2_p8_p1.ebuild => sjeng-11.2_p8_p1-r1.ebuild} | 12 +++++------- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch b/games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch new file mode 100644 index 000000000000..a5a4ba858ffb --- /dev/null +++ b/games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch @@ -0,0 +1,20 @@ +--- a/sjeng.h ++++ b/sjeng.h +@@ -30,6 +30,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> ++#include <stdbool.h> + #include <time.h> + + #ifdef HAVE_SYS_TIMEB_H +@@ -100,7 +101,8 @@ + #define diagr(square) (diagr[(square)]) + + #ifndef INPROBECODE +-typedef enum {FALSE, TRUE} bool; ++#define FALSE false ++#define TRUE true + #endif + + /* castle flags: */ diff --git a/games-board/sjeng/sjeng-11.2_p8_p1.ebuild b/games-board/sjeng/sjeng-11.2_p8_p1-r1.ebuild similarity index 85% rename from games-board/sjeng/sjeng-11.2_p8_p1.ebuild rename to games-board/sjeng/sjeng-11.2_p8_p1-r1.ebuild index 313791ed888d..5e3f1851b7af 100644 --- a/games-board/sjeng/sjeng-11.2_p8_p1.ebuild +++ b/games-board/sjeng/sjeng-11.2_p8_p1-r1.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit autotools prefix @@ -13,8 +13,8 @@ DESCRIPTION="Console based chess interface" HOMEPAGE="http://sjeng.sourceforge.net/" SRC_URI=" https://downloads.sourceforge.net/sjeng/Sjeng-Free-${MY_PV}.tar.gz - mirror://debian/pool/main/s/sjeng/sjeng_${MY_DEB_PV}.diff.gz -" + mirror://debian/pool/main/s/sjeng/sjeng_${MY_DEB_PV}.diff.gz" +S="${WORKDIR}/Sjeng-Free-${MY_PV}" LICENSE="GPL-2" KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86" @@ -23,11 +23,10 @@ SLOT="0" RDEPEND="sys-libs/gdbm:0=" DEPEND="${RDEPEND}" -S="${WORKDIR}/Sjeng-Free-${MY_PV}" - PATCHES=( "${WORKDIR}/sjeng_${MY_DEB_PV}.diff" "${S}/debian/patches" + "${FILESDIR}"/${P}-c23.patch ) src_prepare() { @@ -36,7 +35,6 @@ src_prepare() { hprefixify book.c rcfile.c # Files generated with ancient autotools, regenerate to respect CC. - mv configure.{in,ac} || die eautoreconf }
