blob: cbcf6aeaf6be18de463be86b11978329e58036d4 (
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
57
58
59
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-data/quake2-data-3.20.ebuild,v 1.5 2004/01/08 13:47:57 vapier Exp $
inherit games
DESCRIPTION="iD Software's Quake 2 ... the data files"
HOMEPAGE="http://www.idsoftware.com/"
SRC_URI="ftp://ftp.idsoftware.com/idstuff/quake2/q2-${PV}-x86-full-ctf.exe"
LICENSE="Q2EULA"
SLOT="0"
KEYWORDS="x86 ppc sparc"
IUSE="videos"
DEPEND="app-arch/unzip
virtual/x11"
S=${WORKDIR}
src_unpack() {
unzip -L -q ${DISTDIR}/q2-${PV}-x86-full-ctf.exe
}
src_install() {
games_get_cd Install
games_verify_cd Quake 2
if [ -e ${GAMES_CD}/Install/Data ] ; then
GAMES_CD=${GAMES_CD}/Install/Data
einfo "Source is the CD"
elif [ -e ${GAMES_CD}/baseq2 ] ; then
GAMES_CD=${GAMES_CD}
einfo "Source is an installed copy"
else
die "Could not determine what ${GAMES_CD} points at"
fi
dodoc DOCS/* 3.20_Changes.txt
newdoc ctf/readme.txt ctf-readme.txt
dohtml -r ${GAMES_CD}/DOCS/quake2_manual/*
dodir ${GAMES_DATADIR}/${PN}/baseq2
if [ `use videos` ] ; then
insinto ${GAMES_DATADIR}/${PN}/baseq2/video
doins ${GAMES_CD}/baseq2/video/*
fi
insinto ${GAMES_DATADIR}/${PN}/baseq2
doins ${GAMES_CD}/baseq2/pak0.pak || die "couldnt grab pak0.pak"
doins baseq2/*.pak || die "couldnt grab release paks"
doins baseq2/maps.lst || die "couldnt grab maps.lst"
cp -R baseq2/players ${D}/${GAMES_DATADIR}/${PN}/baseq2/ || die "couldnt grab player models"
insinto ${GAMES_DATADIR}/${PN}/ctf
doins ctf/*.{cfg,ico,pak} || die "couldnt grab ctf"
prepgamesdirs
}
|