guru/games-action/netrek-cow/netrek-cow-3.3.2.ebuild
Takuya Wakazono ea8374a3df
games-action/netrek-cow: don't build with C23
Incompatible function declarations under C23.
https://github.com/quozl/netrek-client-cow/issues/10

Closes: https://bugs.gentoo.org/945213
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
2025-03-30 21:47:09 +09:00

52 lines
897 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools flag-o-matic
DESCRIPTION="cow client for netrek"
HOMEPAGE="https://netrek.org"
SRC_URI="https://github.com/quozl/netrek-client-cow/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/netrek-client-cow-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
# upstream has a file named check that is unrelated to tests
RESTRICT="test"
RDEPEND="
media-libs/imlib2
media-libs/libsdl
media-libs/sdl-mixer
x11-base/xorg-proto
x11-libs/libX11
x11-libs/libXxf86vm
x11-libs/libXmu
"
DEPEND="
${RDEPEND}
"
src_prepare() {
default
./autogen.sh
eautoreconf
}
src_configure() {
# Incompatible function declarations under C23. Bug #945213
append-cflags -std=gnu17
default
}
src_install() {
dobin netrek-client-cow
}
PATCHES=(
"${FILESDIR}/${P}-autoupdate.patch"
)