mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-board/sjeng: update EAPI 7 -> 8
Closes: https://bugs.gentoo.org/943957 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
20
games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch
Normal file
20
games-board/sjeng/files/sjeng-11.2_p8_p1-c23.patch
Normal file
@@ -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: */
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user