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

inherit games

MY_PN="hexen2"

DESCRIPTION="Colored lighting data for Hexen 2"
HOMEPAGE="http://uhexen2.sourceforge.net/"
SRC_URI="mirror://sourceforge/u${MY_PN}/${MY_PN}-lit_files.tgz"

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

S=${WORKDIR}

src_install() {
	local my_dir=${GAMES_DATADIR}/${MY_PN}
	insinto "${my_dir}"
	doins -r data1 || die

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

	dodoc *.txt || die

	prepgamesdirs
}

pkg_postinst() {
	games_pkg_postinst

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