/[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.10 - (show annotations) (download)
Mon Mar 30 17:43:34 2015 UTC (4 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +11 -8 lines
EAPI=5

(Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2015 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.9 2014/04/30 19:25:04 ulm Exp $
4
5 EAPI=5
6 inherit eutils unpacker games
7
8 DESCRIPTION="dedicated server for Battlefield 1942"
9 HOMEPAGE="http://www.battlefield.com/battlefield-1942"
10 SRC_URI="http://ftp.games.skynet.be/pub/misc/${PN/-/_}-1.6-rc2.run
11 http://ftp.games.skynet.be/pub/misc/bf1942-update-${PV}.tar.gz"
12
13 LICENSE="bf1942-lnxded"
14 SLOT="0"
15 KEYWORDS="x86"
16 IUSE=""
17 RESTRICT="mirror bindist strip"
18
19 S=${WORKDIR}
20
21 dir=${GAMES_PREFIX_OPT}/bf1942
22 Ddir=${D}/${dir}
23
24 QA_PREBUILT="${dir}/*.so ${dir}/bf1942_lnxded.*"
25
26 src_unpack() {
27 mkdir bf1942 && cd bf1942
28 unpack_makeself ${PN/-/_}-1.6-rc2.run
29 cd ..
30 unpack bf1942-update-${PV}.tar.gz
31 }
32
33 src_install() {
34 dodir "${dir}"
35 mv -f "${S}"/bf1942/* "${S}" || die
36 rm -rf "${S}"/bf1942 || die
37
38 mv "${S}"/* "${Ddir}" || die
39 dosym bf1942_lnxded.dynamic "${dir}"/bf1942_lnxded
40 games_make_wrapper ${PN} ./bf1942_lnxded "${dir}"
41
42 prepgamesdirs
43 }

  ViewVC Help
Powered by ViewVC 1.1.20