summaryrefslogtreecommitdiff
blob: 7c9d96934fa065f32071ce72aa70d7cae90bfc32 (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
60
61
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2004-bonuspack-ece/ut2004-bonuspack-ece-1.ebuild,v 1.1 2005/02/23 00:29:31 wolf31o2 Exp $

inherit games games-ut2k4mod

MY_P="ut2004-ecebonuspack.tar.bz2"
DESCRIPTION="Unreal Tournament 2004 - Editor's Choice Edition bonus pack"
HOMEPAGE="http://www.unrealtournament2004.com/"
SRC_URI="mirror://3dgamers/pub/3dgamers7/games/unrealtourn2k4/Missions/${MY_P}
	mirror://3dgamers/pub/3dgamers/games/unrealtourn2k4/Missions/${MY_P}"

LICENSE="ut2003"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RESTRICT="nostrip nomirror"
IUSE=""


RDEPEND="games-fps/ut2004-data"
DEPEND="${RDEPEND}"

S=${WORKDIR}/ut2004-ECEBonusPack

dir=${GAMES_PREFIX_OPT}/ut2004
Ddir=${D}/${dir}

pkg_setup() {
	check_dvd

	if [[ ! ${USE_ECE_DVD} -eq 1 ]]
	then
		games_pkg_setup
	fi
}

src_unpack() {
	if [[ ! ${USE_ECE_DVD} -eq 1 ]]
	then
		unpack ${A}
	fi
}

src_install() {
	if [[ ! ${USE_ECE_DVD} -eq 1 ]]
	then
		# Installing Editor's Choice Edition
		for n in {Animations,Help,Manual,Maps,Sounds,StaticMeshes,System,Textures}
		do
			dodir ${dir}/${n}
			cp -r ${S}/${n}/* ${Ddir}/${n} \
				|| die "copying ${n} from Editor's Choice Edition"
		done

		prepgamesdirs
	fi
}

pkg_postinst() {
	games_pkg_postinst
}