# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit eutils games 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/7849/CEP_24_a.rar" LICENSE="as-is" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="" DEPEND="app-arch/p7zip" RDEPEND=">=games-rpg/nwn-1.69" S=${WORKDIR} dir=${GAMES_PREFIX_OPT}/nwn 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.69, 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 dodir "${dir}"/${i} || die "unable to create ${i} directory" insinto "${dir}"/${i} doins ${i}/*.${i} || die "unable to install ${i} files" done insinto "${dir}"/modules doins modules/*.mod || die "unable to install mod files" insinto "${dir}"/dmvault doins dmvault/*.bic || die "unable to install bic files" dodir "${dir}"/docs/cep insinto "${dir}"/docs/cep doins docs/cep/* || die "unable to install docs" prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "The NWN Community Expansion Pack (CEP) v2.3 is now installed." elog "Proceed with the following step in order to get it working:" elog "Run ${dir}/fixinstall as root" }