blob: 942e4754dd395cf04af70183b5a78319dc27ffa9 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-cep/nwn-cep-1.53-r1.ebuild,v 1.2 2006/09/28 21:30:40 nyhm Exp $
inherit eutils games
DESCRIPTION="The Community Expansion Pack is a high quality custom content addon for Neverwinter Nights"
HOMEPAGE="http://nwn.bioware.com/players/cep.html"
SRC_URI="cepv152_man.zip cepv${PV//.}.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE=""
RESTRICT="fetch"
DEPEND="app-arch/unzip"
RDEPEND="=games-rpg/nwn-1.67-r1"
S=${WORKDIR}
pkg_nofetch() {
einfo "Please visit http://nwvault.ign.com/cep/downloads/"
einfo "and download the .zip versions of ${A}."
einfo "Then move the files you downloaded to:"
einfo "${DISTDIR}"
}
pkg_setup() {
games_pkg_setup
if ! built_with_use games-rpg/nwn-data sou || ! built_with_use games-rpg/nwn-data hou
then
eerror "${P} requires NWN v1.67, Shadows of Undrentide, and Hordes of"
eerror "the Underdark. Please make sure you have all three before using"
eerror "this patch."
die "Requirements not met"
fi
}
src_install() {
dodir "${GAMES_PREFIX_OPT}"/nwn/{hak,tlk,modules,cep}
cp *.hak "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "hak failed"
local hak
if use hou ; then
hak=HotU
elif use sou ; then
hak=SoU
else
hak=Live
fi
cp ${hak}/* "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "hak2 failed"
cp cep.tlk "${D}/${GAMES_PREFIX_OPT}"/nwn/tlk/ || die "tlk failed"
cp *.mod "${D}/${GAMES_PREFIX_OPT}"/nwn/modules/ || die "mod failed"
cp *.pdf *.txt "${D}/${GAMES_PREFIX_OPT}"/nwn/cep/ || die "docs failed"
prepgamesdirs
}
|