From 83ae860555aa38b6219428e7d7351aa297b6e673 Mon Sep 17 00:00:00 2001 From: Sam James Date: Fri, 9 Apr 2021 19:30:22 +0000 Subject: games-fps/ut2003-demo: port to EAPI 7, games.eclass-- Signed-off-by: Sam James --- games-fps/ut2003-demo/ut2003-demo-2206-r4.ebuild | 123 ---------------------- games-fps/ut2003-demo/ut2003-demo-2206-r5.ebuild | 124 +++++++++++++++++++++++ 2 files changed, 124 insertions(+), 123 deletions(-) delete mode 100644 games-fps/ut2003-demo/ut2003-demo-2206-r4.ebuild create mode 100644 games-fps/ut2003-demo/ut2003-demo-2206-r5.ebuild (limited to 'games-fps') diff --git a/games-fps/ut2003-demo/ut2003-demo-2206-r4.ebuild b/games-fps/ut2003-demo/ut2003-demo-2206-r4.ebuild deleted file mode 100644 index 2f1817e72c8e..000000000000 --- a/games-fps/ut2003-demo/ut2003-demo-2206-r4.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils unpacker games - -DESCRIPTION="Demo for the sequel to the 1999 multi-player first-person shooter" -HOMEPAGE="http://www.ut2003.com/" -SRC_URI="http://unreal.epicgames.com/linux/ut2003/ut2003demo-lnx-${PV}.sh.bin - http://download.factoryunreal.com/mirror/UT2003CrashFix.zip - https://dev.gentoo.org/~wolf31o2/sources/${PN}/${PN}-misc.tar.bz2" - -LICENSE="ut2003-demo" -SLOT="0" -KEYWORDS="-* ~amd64 ~x86" -IUSE="" -RESTRICT="strip" - -DEPEND="app-arch/unzip" -RDEPEND=" - sys-devel/bc - sys-libs/libstdc++-v3:5 - virtual/opengl[abi_x86_32(-)] - x11-libs/libX11[abi_x86_32(-)] - x11-libs/libXext[abi_x86_32(-)] -" - -S=${WORKDIR} - -dir=${GAMES_PREFIX_OPT}/${PN} -Ddir=${D}/${dir} - -QA_PREBUILT="${dir:1}/*.so ${dir:1}/*-bin ${dir:1}/System/libSDL-1.2.so.0" - -src_unpack() { - unpack_makeself "${DISTDIR}"/ut2003demo-lnx-${PV}.sh.bin || die - unzip "${DISTDIR}"/UT2003CrashFix.zip || die - cd "${S}" - unpack ./setupstuff.tar.gz || die - unpack ./ut2003lnx_demo.tar.bz2 || die - unpack ${PN}-misc.tar.bz2 || die -} - -src_install() { - einfo "This will take a while ... go get a pizza or something" - dodir "${dir}" - - local i - for i in Animations Benchmark Help KarmaData Maps Music Sounds \ - StaticMeshes System Textures Web extras - do - dodir "${dir}"/${i} - cp -pPR "${S}"/${i}/* "${Ddir}"/${i} - done - - # Fix the benchmark configurations to use SDL rather than the Windows driver - local f - for f in MaxDetail.ini MinDetail.ini - do - sed -i \ - -e 's/RenderDevice=D3DDrv.D3DRenderDevice/\;RenderDevice=D3DDrv.D3DRenderDevice/' \ - -e 's/ViewportManager=WinDrv.WindowsClient/\;ViewportManager=WinDrv.WindowsClient/' \ - -e 's/\;RenderDevice=OpenGLDrv.OpenGLRenderDevice/RenderDevice=OpenGLDrv.OpenGLRenderDevice/' \ - -e 's/\;ViewportManager=SDLDrv.SDLClient/ViewportManager=SDLDrv.SDLClient/' \ - "${Ddir}"/Benchmark/Stuff/${f} || die - done - - # Have the benchmarks run the nifty wrapper script rather than - # ../System/ut2003-bin directly - for f in "${Ddir}"/Benchmark/*-*.sh ; do - sed -i \ - -e 's:\.\./System/ut2003-bin:../ut2003_demo:' "${f}" || die - done - - # Wrapper and benchmark-scripts - dogamesbin "${FILESDIR}"/ut2003-demo - exeinto "${dir}"/Benchmark - doexe "${FILESDIR}/"{benchmark,results.sh} - sed -i -e "s:GAMES_PREFIX_OPT:${GAMES_PREFIX_OPT}:" \ - "${ED}/${GAMES_BINDIR}/${PN}" "${ED}/${dir}"/Benchmark/benchmark || die - - # Here we apply DrSiN's crash patch - cp "${S}"/CrashFix/System/crashfix.u "${Ddir}"/System || die - -ed "${Ddir}"/System/Default.ini >/dev/null 2>&1 </dev/null 2>&1 <