summaryrefslogtreecommitdiff
blob: 22bfcf8b6e7f1bc4337539c758e746ef283b581f (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
# Copyright 1999-2004 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.6_rc2.ebuild,v 1.1 2004/08/31 02:14:13 vapier Exp $

inherit games eutils

DESCRIPTION="dedicated server for Battlefield 1942"
HOMEPAGE="http://www.eagames.com/official/battlefield/1942/us/editorial/serveradminfaq.jsp"
SRC_URI="bf1942_lnxded-${PV/_/-}.run"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="fetch"

RDEPEND="virtual/libc"

S="${WORKDIR}"

pkg_nofetch() {
	einfo "Please download ${A} from"
	einfo "http://www.3dgamers.com/games/battlefield1942/"
	einfo "and put it in ${DISTDIR}"
}

src_unpack() {
	unpack_makeself ${A}
}

src_install() {
	local dir=${GAMES_PREFIX_OPT}/bf1942
	dodir ${dir}

	mv * ${D}/${dir}/
	dosym bf1942_lnxded.dynamic ${dir}/bf1942_lnxded
	games_make_wrapper ${PN} ./bf1942_lnxded ${dir}

	prepgamesdirs
}