summaryrefslogtreecommitdiff
blob: 6d65838ac829e7be2f8a02054ead226412a8a455 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="Enhanced graphics and textures for Vavoom"
HOMEPAGE="http://www.vavoom-engine.com/"

SRC_URI="doom1? ( mirror://sourceforge/vavoom/vtextures-doom-${PV}.zip
					mirror://sourceforge/vavoom/vtextures-doom1-${PV}.zip )
	doom2? ( mirror://sourceforge/vavoom/vtextures-doom-${PV}.zip
				mirror://sourceforge/vavoom/vtextures-doom2-${PV}.zip )
	heretic? ( mirror://sourceforge/vavoom/vtextures-heretic-${PV}.zip )
	hexen? ( mirror://sourceforge/vavoom/vtextures-hexen-${PV}.zip )
	plutonia? ( mirror://sourceforge/vavoom/vtextures-doom-${PV}.zip
				mirror://sourceforge/vavoom/vtextures-doom2-${PV}.zip
				mirror://sourceforge/vavoom/vtextures-plutonia-${PV}.zip )
	tnt? (	mirror://sourceforge/vavoom/vtextures-doom-${PV}.zip
			mirror://sourceforge/vavoom/vtextures-doom2-${PV}.zip
			mirror://sourceforge/vavoom/vtextures-tnt-${PV}.zip )
	!doom1? ( !doom2? ( !heretic? ( !hexen? ( !plutonia? ( !tnt? (
		mirror://sourceforge/vavoom/vtextures-doom-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-doom1-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-doom2-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-heretic-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-hexen-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-plutonia-${PV}.zip
		mirror://sourceforge/vavoom/vtextures-tnt-${PV}.zip
		) ) ) ) ) )"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doom1 doom2 heretic hexen plutonia tnt"

RDEPEND="games-fps/vavoom"
DEPEND="app-arch/unzip"

S=${WORKDIR}

src_unpack() {
	unpack ${A}

	cd "${S}"
	for u in `ls -1 basev` ; do
		case "${u}" in
			"doom")
				mv "basev/${u}/xgfx.txt" "${u}-gfx.txt"
				mv "basev/${u}/xwalls.txt" "${u}-walls.txt"
				;;
			"doom1")
				mv "basev/${u}/xwalls.txt" "${u}-walls.txt"
				;;
			"doom2")
				;;
			"heretic")
				mv "basev/${u}/xgfx.txt" "${u}-gfx.txt"
				;;
			"hexen")
				mv "basev/${u}/xgfx.txt" "${u}-gfx.txt"
				mv "basev/${u}/xwalls.txt" "${u}-walls.txt"
				;;
			"plutonia")
				;;
			"tnt")
				;;
		esac
	done
}

src_install() {
	cd "${S}/basev"
	insinto "${GAMES_DATADIR}/vavoom/basev/"
	doins -r * || die "doins failed"

	cd "${S}"
	dodoc *.txt || die "dodoc failed"

	prepgamesdirs
}