summaryrefslogtreecommitdiff
blob: 1996120f7556d499e19aada84aa870f7a7a2ff11 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games

MY_PN="hexen2"

DESCRIPTION="Colored lighting data for Hexen 2"
HOMEPAGE="http://uhexen2.sourceforge.net/"
SRC_URI="mirror://sourceforge/uhexen2/hexen2-lit_files.tgz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND=""

S=${WORKDIR}
dir=${GAMES_DATADIR}/${MY_PN}

src_install() {
	insinto "${dir}"
	doins -r data1 || die "doins * failed"

	# The 3 demo maps are also in the demo data.
	dodir "${dir}"/demo/data1/maps
	local i
	for i in 1 2 3 ; do
		dosym "${dir}"/data1/maps/demo${i}.lit  "${dir}"/demo/data1/maps
	done

	dodoc *.txt

	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst

	if ! has_version "games-fps/uhexen2" ; then
		einfo "This is just lighting data. To play, emerge a client"
		einfo "such as uhexen2."
		echo
	fi
}