mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
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>
52 lines
897 B
Bash
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"
|
|
)
|