Skip to content

Commit

Permalink
games-fps/ut2003-bonuspack-epic: port to EAPI 7, games.eclass--
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Apr 9, 2021
1 parent 684814c commit 27c7624
Showing 1 changed file with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit games
EAPI=7

DESCRIPTION="Epic Bonus Pack for UT2003"
HOMEPAGE="https://www.moddb.com/games/unreal-tournament-2003"
SRC_URI="http://ftp.student.utwente.nl/pub/games/UT2003/BonusPack/UT2003-epicbonuspackone.exe"
S="${WORKDIR}"/UT2003-BonusPack

LICENSE="ut2003"
SLOT="1"
KEYWORDS="~x86"
IUSE=""
RESTRICT="strip"

DEPEND="app-arch/unzip"
RDEPEND="games-fps/ut2003"
RDEPEND="
acct-group/gamestat
games-fps/ut2003
"
BDEPEND="app-arch/unzip"

S=${WORKDIR}/UT2003-BonusPack

dir=${GAMES_PREFIX_OPT}/ut2003
Ddir=${D}/${dir}
dir=opt/ut2003
Ddir="${ED}"/${dir}

src_unpack() {
unzip -qq "${DISTDIR}"/${A} || die

# This is done since the files are the same
rm -f "${S}"/Textures/LastManStanding.utx || die
}
Expand All @@ -39,12 +40,9 @@ src_install() {
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

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."
Expand Down Expand Up @@ -106,5 +104,5 @@ EOT

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
chown :gamestat "${dir}"/System/*.ini || die
}

0 comments on commit 27c7624

Please sign in to comment.