forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nwn-cep-2.0.ebuild
47 lines (39 loc) · 1.05 KB
/
nwn-cep-2.0.ebuild
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
inherit eutils games unpacker
DESCRIPTION="High quality custom content addon for Neverwinter Nights"
HOMEPAGE="http://nwvault.ign.com/cep/"
SRC_URI="http://vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/7000/CEPv2_full.rar"
LICENSE="all-rights-reserved"
SLOT="2"
KEYWORDS="-* amd64 x86"
IUSE=""
RESTRICT="mirror bindist"
DEPEND=""
RDEPEND=">=games-rpg/nwn-1.68"
S=${WORKDIR}
dir=${GAMES_PREFIX_OPT}/nwn
pkg_setup() {
games_pkg_setup
if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then
eerror "${P} requires NWN v1.68, 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() {
local i
for i in hak tlk erf
do
insinto "${dir}"/${i}
doins *.${i} || die "${i} failed"
done
insinto "${dir}"/modules
doins *.mod || die "mod failed"
insinto "${dir}"/cep
doins *.pdf || die "pdf failed"
prepgamesdirs
}