summaryrefslogtreecommitdiff
path: root/games-action/netrek-cow/netrek-cow-3.3.2.ebuild
blob: 2b5029da12707e8ccd5445fcaa9d85b970ec8b36 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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"
)