blob: e4f9a25a7e109a5b5a2d2fd2753523839c89c5b4 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/quake3-teamarena/quake3-teamarena-1.32b.ebuild,v 1.1 2006/03/27 18:36:39 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Quake III Team Arena - data portion"
HOMEPAGE="http://icculus.org/quake3/"
SRC_URI="mirror://idsoftware/quake3/linux/linuxq3apoint-${PV}-3.x86.run"
LICENSE="Q3AEULA"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="cdinstall"
RDEPEND="|| (
games-fps/quake3
games-fps/quake3-bin )"
S=${WORKDIR}
pkg_setup() {
games_pkg_setup
use cdinstall && cdrom_get_cds Setup/missionpack/PAK0.PK3
}
src_unpack() {
unpack_makeself
}
src_install() {
einfo "Copying Team Arena files from linux client ..."
insinto "${GAMES_DATADIR}"/quake3/missionpack
doins missionpack/*.pk3 || die "missionpack"
if use cdinstall ; then
einfo "Copying files from CD ..."
newins "${CDROM_ROOT}/Setup/missionpack/PAK0.PK3" pak0.pk3 \
|| die "pak0"
doins "${CDROM_ROOT}/Setup/missionpack/pak1.pk3" || die "pak1"
eend 0
fi
find "${D}" -exec touch '{}' \;
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
if ! use cdinstall ; then
einfo "You need to copy PAK0.PK3 from your Team Arena CD into"
einfo "${dir}/missionpack and name it pak0.pk3."
einfo "Or if you have got a Window installation of Q3 make a symlink to save space."
echo
einfo "Or, re-emerge quake3-teamarena with USE=cdinstall."
echo
fi
einfo "There is currently no icon for Q3TA. This will be resolved soon."
}
|