1 |
commit: a4e6c1297841f81175dd6a78fb576effdbe5c0c7 |
2 |
Author: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 1 18:06:03 2018 +0000 |
4 |
Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 1 19:35:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4e6c129 |
7 |
|
8 |
games-server/crossfire-server: Stop using games.eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.31, Repoman-2.3.9 |
11 |
|
12 |
.../crossfire-server-1.71.0-r1.ebuild | 51 ++++++++++++++++++++++ |
13 |
1 file changed, 51 insertions(+) |
14 |
|
15 |
diff --git a/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild b/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..3012afe88c9 |
18 |
--- /dev/null |
19 |
+++ b/games-server/crossfire-server/crossfire-server-1.71.0-r1.ebuild |
20 |
@@ -0,0 +1,51 @@ |
21 |
+# Copyright 1999-2018 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+MY_P="${P/-server/}" |
27 |
+DESCRIPTION="Server for the crossfire clients" |
28 |
+HOMEPAGE="http://crossfire.real-time.com/" |
29 |
+SRC_URI="mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.tar.bz2 |
30 |
+ mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.maps.tar.bz2 |
31 |
+ mirror://sourceforge/crossfire/${PN}/${PV}/${MY_P}.arch.tar.bz2" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+IUSE="X" |
37 |
+RESTRICT="test" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ net-misc/curl |
41 |
+ X? ( |
42 |
+ x11-libs/libXaw |
43 |
+ media-libs/libpng:0= |
44 |
+ ) |
45 |
+" |
46 |
+DEPEND="${RDEPEND}" |
47 |
+ |
48 |
+src_prepare() { |
49 |
+ default |
50 |
+ rm -f "${WORKDIR}"/maps/Info/combine.pl # bug #236205 |
51 |
+ ln -s "${WORKDIR}/arch" "${S}/lib" || die |
52 |
+ eapply "${FILESDIR}"/${P}-format.patch |
53 |
+} |
54 |
+ |
55 |
+src_configure() { |
56 |
+ econf --disable-static |
57 |
+} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ # work around the collect.pl locking |
61 |
+ emake -j1 -C lib |
62 |
+ emake |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ default |
67 |
+ keepdir /var/lib/crossfire/{account,datafiles,maps,players,template-maps,unique-items} |
68 |
+ insinto /usr/share/crossfire |
69 |
+ doins -r "${WORKDIR}/maps" |
70 |
+ find "${D}" -name '*.la' -delete || die |
71 |
+} |