diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2004-08-12 11:25:12 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2004-08-12 11:25:12 +0000 |
commit | 218f6f7601064847a8fd98be29fd3c294f050268 (patch) | |
tree | b1f244a1f8162b1e704e7eb25db604977a48cd32 /games-fps/ut2003-demo | |
parent | fixed kdebase dependency, #59775 (Manifest recommit) (diff) | |
download | gentoo-2-218f6f7601064847a8fd98be29fd3c294f050268.tar.gz gentoo-2-218f6f7601064847a8fd98be29fd3c294f050268.tar.bz2 gentoo-2-218f6f7601064847a8fd98be29fd3c294f050268.zip |
fix the icon install (bug #58982); tidy src_install
Diffstat (limited to 'games-fps/ut2003-demo')
-rw-r--r-- | games-fps/ut2003-demo/ChangeLog | 6 | ||||
-rw-r--r-- | games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild | 57 |
2 files changed, 36 insertions, 27 deletions
diff --git a/games-fps/ut2003-demo/ChangeLog b/games-fps/ut2003-demo/ChangeLog index abb330e495b1..6e3902726d7c 100644 --- a/games-fps/ut2003-demo/ChangeLog +++ b/games-fps/ut2003-demo/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for games-fps/ut2003-demo # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ChangeLog,v 1.10 2004/06/24 22:49:44 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ChangeLog,v 1.11 2004/08/12 11:25:12 mr_bones_ Exp $ + + 12 Aug 2004; Michael Sterrett <mr_bones_@gentoo.org> + ut2003-demo-2206-r3.ebuild: + fix the icon install (bug #58982); tidy src_install 04 Apr 2004; Chris Gianelloni <wolf31o2@gentoo.org> ut2003-demo-2206-r3.ebuild: diff --git a/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild b/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild index e29b76193f0c..df0f24f60a9a 100644 --- a/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild +++ b/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild,v 1.6 2004/06/24 22:49:44 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-fps/ut2003-demo/ut2003-demo-2206-r3.ebuild,v 1.7 2004/08/12 11:25:12 mr_bones_ Exp $ inherit games @@ -18,9 +18,9 @@ RESTRICT="nostrip" DEPEND="virtual/opengl app-arch/unzip" -S=${WORKDIR} -dir=${GAMES_PREFIX_OPT}/${PN} -Ddir=${D}/${dir} +S="${WORKDIR}" +dir="${GAMES_PREFIX_OPT}/${PN}" +Ddir="${D}/${dir}" pkg_setup() { check_license @@ -30,44 +30,49 @@ pkg_setup() { src_unpack() { unpack_makeself ${DISTDIR}/ut2003demo-lnx-${PV}.sh.bin \ || die "unpacking demo" - unzip ${DISTDIR}/UT2003CrashFix.zip \ + unzip "${DISTDIR}/UT2003CrashFix.zip" \ || die "unpacking crash-fix" tar -zxf setupstuff.tar.gz || die } src_install() { + local f + einfo "This will take a while ... go get a pizza or something" - dodir ${dir} + dodir "${dir}" - tar -jxvf ut2003lnx_demo.tar.bz2 -C ${Ddir} || die - tar -jxvf ${FILESDIR}/misc.tar.bz2 -C ${Ddir} || die + tar -jxvf ut2003lnx_demo.tar.bz2 -C "${Ddir}" || die + tar -jxvf "${FILESDIR}/misc.tar.bz2" -C "${Ddir}" || die # fix the benchmark configurations to use SDL rather than the Windows driver - cd ${D}/${dir}/Benchmark/Stuff for f in MaxDetail.ini MinDetail.ini ; do - dosed 's/RenderDevice=D3DDrv.D3DRenderDevice/\;RenderDevice=D3DDrv.D3DRenderDevice/' ${dir}/Benchmark/Stuff/${f} - dosed 's/ViewportManager=WinDrv.WindowsClient/\;ViewportManager=WinDrv.WindowsClient/' ${dir}/Benchmark/Stuff/${f} - dosed 's/\;RenderDevice=OpenGLDrv.OpenGLRenderDevice/RenderDevice=OpenGLDrv.OpenGLRenderDevice/' ${dir}/Benchmark/Stuff/${f} - dosed 's/\;ViewportManager=SDLDrv.SDLClient/ViewportManager=SDLDrv.SDLClient/' ${dir}/Benchmark/Stuff/${f} + 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 "sed ${dir}/Benchmark/Stuff/${f} failed" done # have the benchmarks run the nifty wrapper script rather than ../System/ut2003-bin directly - cd ${D}/opt/ut2003-demo/Benchmark - for f in ${Ddir}/Benchmark/*-*.sh ; do - dosed 's:\.\./System/ut2003-bin:../ut2003_demo:' ${f} + for f in "${Ddir}/Benchmark/"*-*.sh ; do + sed -i \ + -e 's:\.\./System/ut2003-bin:../ut2003_demo:' "${f}" \ + || die "sed ${f} failed" done # Wrapper and benchmark-scripts - insinto ${GAMES_BINDIR} - dogamesbin ${FILESDIR}/ut2003-demo - exeinto ${dir}/Benchmark - doexe ${FILESDIR}/{benchmark,results.sh} + dogamesbin "${FILESDIR}/ut2003-demo" || die "dogamesbin failed" + exeinto "${dir}/Benchmark" + doexe "${FILESDIR}/"{benchmark,results.sh} || die "doexe failed" # Here we apply DrSiN's crash patch - cp ${S}/CrashFix/System/crashfix.u ${Ddir}/System || die "CrashFix failed" + cp "${S}/CrashFix/System/crashfix.u" "${Ddir}/System" \ + || die "CrashFix failed" -ed ${Ddir}/System/Default.ini >/dev/null 2>&1 <<EOT +ed "${Ddir}/System/Default.ini" >/dev/null 2>&1 <<EOT $ ?Engine.GameInfo? a @@ -78,16 +83,16 @@ q EOT # create menu entry (closes bug #27594) - insinto /usr/share/applications - newins ${S}/opt/ut2003-demo/Unreal.xpm UT2003-demo.xpm + insinto /usr/share/pixmaps + newins "${S}/Unreal.xpm" UT2003-demo.xpm || die "newins failed" make_desktop_entry ut2003-demo "Unreal Tournament 2003 (Demo)" UT2003-demo.xpm prepgamesdirs } pkg_postinst() { - einfo "To play the game run:" - einfo " ut2003" + einfo "To play the demo run:" + einfo " ut2003-demo" echo einfo "You can run benchmarks by typing 'ut2003-demo --bench' (MinDetail seems" einfo "to not be working for some unknown reason :/)" |