blob: 582378c1e7b22560f812535b3de5939f25935e42 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit libtool
MY_P="${P/-server/}"
DESCRIPTION="Server for the crossfire clients"
HOMEPAGE="https://crossfire.real-time.com/"
SRC_URI="https://downloads.sourceforge.net/crossfire/crossfire-server/${PV}/crossfire-${PV}.tar.gz
https://downloads.sourceforge.net/crossfire/crossfire-maps/${PV}/crossfire-maps-${PV}.tar.gz"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X"
RESTRICT="test"
RDEPEND="
net-misc/curl
virtual/zlib:=
virtual/libcrypt:=
X? (
x11-libs/libXaw
media-libs/libpng:0=
)
"
PATCHES=( "${FILESDIR}/${P}-incompatible-func-pointers.patch" )
src_prepare() {
default
elibtoolize
# Automagically detects python2/python3. In the latter case, without
# python_setup it goes nowhere anyway. For modern python it needs python3-embed.
sed -i 's/python-2.7/notpython-do-not-find/' configure || die
# bug #236205
rm -f "${WORKDIR}"/maps/Info/combine.pl || die
# ln -s "${WORKDIR}"/arch "${S}"/lib || die
eapply "${FILESDIR}"/${P}-format.patch
}
src_compile() {
# work around the collect.pl locking
emake -j1 -C lib
emake
}
src_install() {
default
keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items}
insinto /usr/share/crossfire
doins -r "${WORKDIR}"/maps
find "${ED}" -name '*.la' -delete || die
}
|