summaryrefslogtreecommitdiff
blob: 687cbf046776f69585fb4d2c607e96e2bdff1758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools flag-o-matic

DESCRIPTION="Console based chess interface"
HOMEPAGE="https://www.gnu.org/software/chess/chess.html"
SRC_URI="mirror://gnu/chess/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv x86"

PATCHES=(
	"${FILESDIR}"/${PN}-6.2.9-c++17.patch
	"${FILESDIR}"/${PN}-6.2.9-configure-quoting.patch
)

src_prepare() {
	default

	# Needed for clang 16 patch (quoting)
	eautoreconf
}

src_configure() {
	# -Wodr warnings, bug #858611
	filter-lto

	# bug #491088
	econf --without-readline
}