# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-bonuspack-epic/ut2003-bonuspack-epic-1.ebuild,v 1.14 2007/03/12 15:30:37 genone Exp $ inherit games IUSE="" DESCRIPTION="Epic Bonus Pack for UT2003" HOMEPAGE="http://www.unrealtournament2003.com/" SRC_URI="ftp://ftp.infogrames.net/misc/ut2003/UT2003-epicbonuspackone.exe http://fragzone.medialt.ru/files/Unreal%20Tournament/Patches/UT2003-epicbonuspackone.exe http://www.edgefiles.com/download/dl3.edgefiles.com/unrealgaming.com/www/ut2003/bonuspack/UT2003-epicbonuspackone.exe" LICENSE="ut2003" SLOT="1" KEYWORDS="x86" RESTRICT="mirror strip" DEPEND="app-arch/unzip" RDEPEND="games-fps/ut2003" S=${WORKDIR}/UT2003-BonusPack dir=${GAMES_PREFIX_OPT}/ut2003 Ddir=${D}/${dir} src_unpack() { unzip ${DISTDIR}/${A} || die "unpacking" # This is done since the files are the same rm ${S}/Textures/LastManStanding.utx } src_install() { dodir ${dir} insinto ${dir}/Help newins ${S}/Help/BonusPackReadme.txt EpicBonusPack.README || die "README" exeinto ${dir} doexe ${FILESDIR}/epic-installer dodir ${dir}/System cp -r ${S}/{Maps,Sounds,StaticMeshes,Textures} ${Ddir} \ || die "Copying Maps/Sounds/Textures" cp ${S}/System/{*.{det,est,frt,int,itt,kot,tmt,u},User.ini} ${Ddir}/System \ || die "Copying System files" cp -v ${S}/System/Manifest.ini ${Ddir}/System/Manifest.ini.epic \ || die "Copying Manifest" prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "You will need to run:" elog "emerge --config =${CATEGORY}/${PF}" elog "to make the necessary changes to the system .ini files." elog elog "Each user whom has already played the game will need to run:" elog " ${dir}/epic-installer" echo elog "to update their configuration files in their home directory." echo } pkg_config() { cd ${dir}/System cp Manifest.ini Manifest.ini.pre-epic cp ${dir}/System/Manifest.ini.epic Manifest.ini cp Default.ini Default.ini.pre-epic cat >> Default.ini </dev/null 2>&1 </dev/null 2>&1 </dev/null 2>&1 <