/[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.4 - (show annotations) (download)
Sun Oct 7 11:26:09 2012 UTC (2 years ago) by pacho
Branch: MAIN
Changes since 1.3: +4 -4 lines
Rely on unpack.eclass to pull unrar deps, if other RAR alternatives are found to really fully replace unrar, this needs to be discussed centrally with eclass authors instead of in every ebuild using rar files (#244987 by drantin).

(Portage version: 2.1.11.24/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.3 2010/07/12 17:07:46 mr_bones_ 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="as-is"
14 SLOT="0"
15 KEYWORDS="-* amd64 x86"
16 IUSE=""
17
18 DEPEND=""
19 RDEPEND=">=games-rpg/nwn-1.68"
20
21 pkg_setup() {
22 games_pkg_setup
23 if ! has_version 'games-rpg/nwn-data[hou,sou]' ; then
24 eerror "${P} requires NWN v1.68, Shadows of Undrentide, and Hordes of"
25 eerror "the Underdark. Please make sure you have all three before using"
26 eerror "this patch."
27 die "Requirements not met"
28 fi
29 }
30
31 src_install() {
32 dodir "${GAMES_PREFIX_OPT}"/nwn/{hak,tlk,texturepacks,modules,cep}
33
34 # Using mv below instead of doins due to large file sizes
35 mv *.hak HotU/*.hak "${D}/${GAMES_PREFIX_OPT}"/nwn/hak/ || die "Installing hak files failed"
36 mv *.tlk "${D}/${GAMES_PREFIX_OPT}"/nwn/tlk/ || die "Installing tlk files failed"
37 mv *.erf "${D}/${GAMES_PREFIX_OPT}"/nwn/texturepacks/ || die "Installing erf files failed"
38 mv *.mod "${D}/${GAMES_PREFIX_OPT}"/nwn/modules/ || die "Installing mod files failed"
39 mv *.pdf *.txt "${D}/${GAMES_PREFIX_OPT}"/nwn/cep/ || die "Installing documentation failed"
40 prepgamesdirs
41 }

  ViewVC Help
Powered by ViewVC 1.1.20