blob: 4305abe89eba6ee8ee928ec6242e9ffac70e3f48 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild,v 1.5 2005/09/26 18:19:23 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="dedicated server for Battlefield 1942"
HOMEPAGE="http://www.eagames.com/official/battlefield/1942/us/editorial/serveradminfaq.jsp"
SRC_URI="mirror://3dgamers/battlefield1942/${PN/-/_}-1.6-rc2.run
mirror://3dgamers/battlefield1942/bf1942-update-${PV}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="sys-libs/glibc"
S=${WORKDIR}
dir="${GAMES_PREFIX_OPT}/bf1942"
Ddir="${D}/${dir}"
src_unpack() {
mkdir bf1942 && cd bf1942
unpack_makeself ${PN/-/_}-1.6-rc2.run
cd ..
unpack bf1942-update-${PV}.tar.gz
}
src_install() {
dodir ${dir}
mv -f ${S}/bf1942/* ${S} || die "Copying patch files"
rm -rf ${S}/bf1942 || die "removing extra directory"
mv ${S}/* ${Ddir} || die "Copying game data"
dosym bf1942_lnxded.dynamic ${dir}/bf1942_lnxded
games_make_wrapper ${PN} ./bf1942_lnxded ${dir}
prepgamesdirs
}
|