blob: 5e38dcd1e3265ddf64e119ef48fac3b6f3fa71d4 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-server/halflife-statsme/halflife-statsme-2.7.1.ebuild,v 1.5 2004/06/28 22:09:51 agriffis Exp $
inherit games eutils
DESCRIPTION="plugin for metamod to track in game statistics in real time"
HOMEPAGE="http://www.unitedadmins.com/statsme.php"
SRC_URI="!nocstrike? ( mirror://sourceforge/statsme/statsme-${PV}-cstrike.zip )
!nocstrike? ( mirror://sourceforge/statsme/statsme-${PV}-cstrike-scriptpacks.zip )
!nodod? ( mirror://sourceforge/statsme/statsme-${PV}-dod.zip )
!nodod? ( mirror://sourceforge/statsme/statsme-${PV}-dod-scriptpacks.zip )
!notfc? ( mirror://sourceforge/statsme/statsme-${PV}-tfc.zip )
!notfc? ( mirror://sourceforge/statsme/statsme-${PV}-tfc-scriptpacks.zip )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE="nocstrike nodod notfc"
RDEPEND="games-server/halflife-metamod"
S=${WORKDIR}
src_unpack() {
for m in cstrike dod tfc ; do
useq no${m} && continue
mkdir ${S}/${m}
cd ${S}/${m}
unpack statsme-${PV}-${m}.zip
cd addons/statsme/scriptpacks
unpack statsme-${PV}-${m}-scriptpacks.zip
cd ..
edos2unix `find -name '*.txt' -o -name '*.cfg' -o -name 'README.*'`
epatch ${FILESDIR}/${PV}-${m}-gentoo.patch
done
cd ${S}
}
src_install() {
local dir=${GAMES_PREFIX_OPT}/halflife/addons/statsme
for m in cstrike dod tfc ; do
useq no${m} && continue
dodir ${dir}-${m}
cd ${S}/${m}/addons/statsme
#sed -i "s:addons/statsme/:../addons/statsme-${m}/:g" \
# statsme.cfg scriptpacks.cfg scriptpacks/*/README.*
mv * ${D}/${dir}-${m}/
exeinto ${dir}-${m}
doexe ${FILESDIR}/modsetup
dosed "s:GENTOO_CFGDIR:${GAMES_SYSCONFDIR}/halflife:" ${dir}-${m}/modsetup
dosed "s:HLMODDIR:${m}:" ${dir}-${m}/modsetup
done
dodoc ${WORKDIR}/*/*.txt
prepgamesdirs
}
|