From 317942c459904d812c8119cbc1bcdb97b007f42c Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 21 Aug 2021 22:28:54 +0100 Subject: games-action/descent3-demo: use non-relative wrapper path Bug: https://bugs.gentoo.org/809356 Signed-off-by: Sam James --- .../descent3-demo/descent3-demo-1.4.0a-r1.ebuild | 75 ---------------------- .../descent3-demo/descent3-demo-1.4.0a-r2.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 75 insertions(+), 75 deletions(-) delete mode 100644 games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild create mode 100644 games-action/descent3-demo/descent3-demo-1.4.0a-r2.ebuild (limited to 'games-action') diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild deleted file mode 100644 index c0be84464d16..000000000000 --- a/games-action/descent3-demo/descent3-demo-1.4.0a-r1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit desktop unpacker wrapper xdg - -DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft" -HOMEPAGE="http://www.lokigames.com/products/descent3/" -SRC_URI="mirror://lokigames/loki_demos/${PN}.run" -S="${WORKDIR}" - -LICENSE="all-rights-reserved" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="alsa pulseaudio" -REQUIRED_USE="?? ( alsa pulseaudio )" - -RESTRICT="bindist mirror strip" - -RDEPEND=" - sys-libs/glibc - >=virtual/opengl-7.0-r1[abi_x86_32(-)] - >=x11-libs/libX11-1.6.2[abi_x86_32(-)] - >=x11-libs/libXext-1.3.2[abi_x86_32(-)] - alsa? ( media-libs/alsa-oss[abi_x86_32(-)] ) - pulseaudio? ( media-sound/pulseaudio[abi_x86_32(-)] ) -" -BDEPEND="games-util/loki_patch" - -dir="opt/${PN}" -QA_PREBUILT=" - ${dir}/descent3_demo.x86 - ${dir}/netgames/*.d3m -" - -src_install() { - local \ - snd= \ - demo="data/demos/descent3_demo" \ - exe="descent3_demo.x86" - - loki_patch patch.dat data/ || die - - insinto ${dir} - exeinto ${dir} - doins -r "${demo}"/* - doexe "${demo}/${exe}" - - # Required directory - keepdir "${dir}"/missions - - # Fix for 2.6 kernel crash, bug #151148 - dosym ppics.hog "${dir}"/PPics.Hog - - if use alsa; then - snd="aoss " - elif use pulseaudio; then - snd="env LD_PRELOAD=\"${EPREFIX}/usr/$(ABI=x86 get_libdir)/pulseaudio/libpulsedsp.so\" " - fi - - make_wrapper ${PN} "${snd}./${exe} -G -o" "${dir}" - newicon "${demo}"/launch/box.png ${PN}.png - make_desktop_entry ${PN} "Descent 3 (Demo)" -} - -pkg_postinst() { - xdg_pkg_postinst - - elog "To play the game run:" - elog " descent3-demo" - elog - elog "If the game appears blank, then run it windowed with:" - elog " descent3-demo -w" -} diff --git a/games-action/descent3-demo/descent3-demo-1.4.0a-r2.ebuild b/games-action/descent3-demo/descent3-demo-1.4.0a-r2.ebuild new file mode 100644 index 000000000000..32ec09fbaf08 --- /dev/null +++ b/games-action/descent3-demo/descent3-demo-1.4.0a-r2.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop unpacker wrapper xdg + +DESCRIPTION="Indoor/outdoor 3D combat with evil robotic mining spacecraft" +HOMEPAGE="http://www.lokigames.com/products/descent3/" +SRC_URI="mirror://lokigames/loki_demos/${PN}.run" +S="${WORKDIR}" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="alsa pulseaudio" +REQUIRED_USE="?? ( alsa pulseaudio )" + +RESTRICT="bindist mirror strip" + +RDEPEND=" + sys-libs/glibc + >=virtual/opengl-7.0-r1[abi_x86_32(-)] + >=x11-libs/libX11-1.6.2[abi_x86_32(-)] + >=x11-libs/libXext-1.3.2[abi_x86_32(-)] + alsa? ( media-libs/alsa-oss[abi_x86_32(-)] ) + pulseaudio? ( media-sound/pulseaudio[abi_x86_32(-)] ) +" +BDEPEND="games-util/loki_patch" + +dir="/opt/${PN}" +QA_PREBUILT=" + ${dir#/}/descent3_demo.x86 + ${dir#/}/netgames/*.d3m +" + +src_install() { + local \ + snd= \ + demo="data/demos/descent3_demo" \ + exe="descent3_demo.x86" + + loki_patch patch.dat data/ || die + + insinto ${dir} + exeinto ${dir} + doins -r "${demo}"/* + doexe "${demo}/${exe}" + + # Required directory + keepdir "${dir}"/missions + + # Fix for 2.6 kernel crash, bug #151148 + dosym ppics.hog "${dir}"/PPics.Hog + + if use alsa; then + snd="aoss " + elif use pulseaudio; then + snd="env LD_PRELOAD=\"${EPREFIX}/usr/$(ABI=x86 get_libdir)/pulseaudio/libpulsedsp.so\" " + fi + + make_wrapper ${PN} "${snd}./${exe} -G -o" "${dir}" + newicon "${demo}"/launch/box.png ${PN}.png + make_desktop_entry ${PN} "Descent 3 (Demo)" +} + +pkg_postinst() { + xdg_pkg_postinst + + elog "To play the game run:" + elog " descent3-demo" + elog + elog "If the game appears blank, then run it windowed with:" + elog " descent3-demo -w" +} -- cgit v1.2.3-65-gdbad