/[gentoo-x86]/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild
Gentoo

Contents of /games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sun Feb 5 06:18:27 2012 UTC (5 years, 1 month ago) by vapier
Branch: MAIN
Changes since 1.7: +3 -3 lines
Move to new unpacker eclass for unpack_makeself.

(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-server/bf1942-lnxded/bf1942-lnxded-1.61.ebuild,v 1.7 2009/11/10 21:15:26 mr_bones_ Exp $
4
5 inherit eutils unpacker games
6
7 DESCRIPTION="dedicated server for Battlefield 1942"
8 HOMEPAGE="http://www.eagames.com/official/battlefield/1942/us/editorial/serveradminfaq.jsp"
9 SRC_URI="http://bf1942.lightcubed.com/dist/${PN/-/_}-1.6-rc2.run
10 ftp://largedownloads.ea.com/pub/misc/bf1942-update-${PV}.tar.gz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="x86"
15 IUSE=""
16 RESTRICT="mirror strip"
17
18 RDEPEND="sys-libs/glibc"
19
20 S=${WORKDIR}
21
22 dir=${GAMES_PREFIX_OPT}/bf1942
23 Ddir=${D}/${dir}
24
25 src_unpack() {
26 mkdir bf1942 && cd bf1942
27 unpack_makeself ${PN/-/_}-1.6-rc2.run
28 cd ..
29 unpack bf1942-update-${PV}.tar.gz
30 }
31
32 src_install() {
33 dodir "${dir}"
34 mv -f "${S}"/bf1942/* "${S}" || die "Copying patch files"
35 rm -rf "${S}"/bf1942 || die "removing extra directory"
36
37 mv "${S}"/* "${Ddir}" || die "Copying game data"
38 dosym bf1942_lnxded.dynamic "${dir}"/bf1942_lnxded
39 games_make_wrapper ${PN} ./bf1942_lnxded "${dir}"
40
41 prepgamesdirs
42 }

  ViewVC Help
Powered by ViewVC 1.1.20