/[gentoo-x86]/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild
Gentoo

Contents of /games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Apr 19 07:32:58 2014 UTC (4 years, 2 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +4 -3 lines
Fix LICENSE, add mirror and bindist restrictions, bug 505734.

(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 9433907D693FB5B8!)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/nwn-cep/nwn-cep-1.68-r1.ebuild,v 1.4 2012/10/07 11:26:09 pacho Exp $
4
5 EAPI=2
6 inherit games unpacker
7
8 DESCRIPTION="The Community Expansion Pack for Neverwinter Nights"
9 HOMEPAGE="http://nwn.bioware.com/players/cep.html"
10 SRC_URI="http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6057/cepv152_man.rar
11 http://c.vnfiles.ign.com/nwvault.ign.com/fms/files/hakpaks/6974/CEP168.rar"
12
13 LICENSE="all-rights-reserved"
14 SLOT="0"
15 KEYWORDS="-* amd64 x86"
16 IUSE=""
17 RESTRICT="mirror bindist"
18
19 DEPEND=""
20 RDEPEND=">=games-rpg/nwn-1.68"
21
22 pkg_setup() {
23 games_pkg_setup
24 if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then
25 eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of"
26 eerror "the Underdark. Please make sure you have all three before using"
27 eerror "this patch."
28 die "Requirements not met"
29 fi
30 }
31
32 src_install() {
33 dodir "${GAMES_PREFIX_OPT}"/nwn/{hak,tlk,texturepacks,modules,cep}
34
35 # Using mv below instead of doins due to large file sizes
36 mv *.hak HotU/*.hak "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "Installing hak files failed"
37 mv *.tlk "${D}/${GAMES_PREFIX_OPT}"/nwn/tlk/ || die "Installing tlk files failed"
38 mv *.erf "${D}/${GAMES_PREFIX_OPT}"/nwn/texturepacks/ || die "Installing erf files failed"
39 mv *.mod "${D}/${GAMES_PREFIX_OPT}"/nwn/modules/ || die "Installing mod files failed"
40 mv *.pdf *.txt "${D}/${GAMES_PREFIX_OPT}"/nwn/cep/ || die "Installing documentation failed"
41 prepgamesdirs
42 }

  ViewVC Help
Powered by ViewVC 1.1.20