2012-02-06 16:39:49 +04:00
|
|
|
# Copyright 1999-2009 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2016-01-13 16:31:57 +03:00
|
|
|
EAPI=5
|
2012-02-06 16:39:49 +04:00
|
|
|
inherit games
|
|
|
|
|
|
|
|
DESCRIPTION="Epic Bonus Pack for UT2003"
|
2016-01-13 16:31:57 +03:00
|
|
|
HOMEPAGE="http://www.moddb.com/games/unreal-tournament-2003"
|
|
|
|
SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
LICENSE="ut2003"
|
|
|
|
SLOT="1"
|
2017-11-19 20:50:57 +03:00
|
|
|
KEYWORDS="~x86"
|
2016-01-13 16:31:57 +03:00
|
|
|
IUSE=""
|
|
|
|
RESTRICT="strip"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
DEPEND="app-arch/unzip"
|
|
|
|
RDEPEND="games-fps/ut2003"
|
|
|
|
|
|
|
|
S=${WORKDIR}/UT2003-BonusPack
|
|
|
|
|
|
|
|
dir=${GAMES_PREFIX_OPT}/ut2003
|
|
|
|
Ddir=${D}/${dir}
|
|
|
|
|
|
|
|
src_unpack() {
|
2016-01-13 16:31:57 +03:00
|
|
|
unzip -qq "${DISTDIR}"/${A} || die
|
2012-02-06 16:39:49 +04:00
|
|
|
# This is done since the files are the same
|
2016-01-13 16:31:57 +03:00
|
|
|
rm -f "${S}"/Textures/LastManStanding.utx || die
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
insinto "${dir}"/Help
|
2016-01-13 16:31:57 +03:00
|
|
|
newins "${S}"/Help/BonusPackReadme.txt EpicBonusPack.README
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
exeinto "${dir}"
|
|
|
|
doexe "${FILESDIR}"/epic-installer
|
|
|
|
dodir "${dir}"/System
|
|
|
|
|
2016-01-13 16:31:57 +03:00
|
|
|
cp -r "${S}"/{Maps,Sounds,StaticMeshes,Textures} "${Ddir}" || die
|
|
|
|
cp "${S}"/System/{*.{det,est,frt,int,itt,kot,tmt,u},User.ini} "${Ddir}"/System || die
|
|
|
|
cp -v "${S}"/System/Manifest.ini "${Ddir}"/System/Manifest.ini.epic || die
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
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() {
|
2016-01-13 16:31:57 +03:00
|
|
|
cd ${dir}/System || die
|
|
|
|
cp Manifest.ini Manifest.ini.pre-epic || die
|
|
|
|
cp ${dir}/System/Manifest.ini.epic Manifest.ini || die
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2016-01-13 16:31:57 +03:00
|
|
|
cp Default.ini Default.ini.pre-epic || die
|
2012-02-06 16:39:49 +04:00
|
|
|
cat >> Default.ini <<EOT
|
|
|
|
|
|
|
|
[Xinterface.Tab_AudioSettings]
|
|
|
|
BonusPackInfo[1]=(PackageName="AnnouncerEvil.uax",Description="Evil")
|
|
|
|
BonusPackInfo[2]=(PackageName="AnnouncerFemale.uax",Description="Female")
|
|
|
|
BonusPackInfo[3]=(PackageName="AnnouncerSexy.uax",Description="Aroused")
|
|
|
|
|
|
|
|
EOT
|
|
|
|
|
|
|
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
|
|
|
/\[xInterface.ExtendedConsole\]
|
|
|
|
a
|
|
|
|
MusicManagerClassName=OGGPlayer.UT2OGGMenu
|
|
|
|
.
|
|
|
|
w
|
|
|
|
q
|
|
|
|
EOT
|
|
|
|
|
|
|
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
|
|
|
$
|
|
|
|
?EditPackages?
|
|
|
|
a
|
|
|
|
EditPackages=BonusPack
|
|
|
|
EditPackages=SkaarjPack
|
|
|
|
EditPackages=SkaarjPack_rc
|
|
|
|
.
|
|
|
|
w
|
|
|
|
q
|
|
|
|
EOT
|
|
|
|
|
|
|
|
ed Default.ini >/dev/null 2>&1 <<EOT
|
|
|
|
$
|
|
|
|
?ServerPackages?
|
|
|
|
a
|
|
|
|
ServerPackages=BonusPack
|
|
|
|
ServerPackages=SkaarjPack
|
|
|
|
ServerPackages=SkaarjPack_rc
|
|
|
|
.
|
|
|
|
w
|
|
|
|
q
|
|
|
|
EOT
|
|
|
|
|
2016-01-13 16:31:57 +03:00
|
|
|
cp DefUser.ini DefUser.ini.pre-epic || die
|
|
|
|
sed -i 's/^F11=.*$/F11=MusicMenu/g' DefUser.ini || die
|
|
|
|
chown games:games ${dir}/System/*.ini || die
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|