From 1d61eeb42ec76a3bce0d0617b3af91642506e4fe Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 6 Apr 2021 23:06:08 +0000 Subject: games-action/heretic2-demo: port to EAPI 7, games.eclass-- Signed-off-by: Sam James --- .../heretic2-demo/heretic2-demo-1.06a-r1.ebuild | 55 +++++++++++++++++++++ .../heretic2-demo/heretic2-demo-1.06a.ebuild | 57 ---------------------- 2 files changed, 55 insertions(+), 57 deletions(-) create mode 100644 games-action/heretic2-demo/heretic2-demo-1.06a-r1.ebuild delete mode 100644 games-action/heretic2-demo/heretic2-demo-1.06a.ebuild (limited to 'games-action') diff --git a/games-action/heretic2-demo/heretic2-demo-1.06a-r1.ebuild b/games-action/heretic2-demo/heretic2-demo-1.06a-r1.ebuild new file mode 100644 index 000000000000..8d869e898f2b --- /dev/null +++ b/games-action/heretic2-demo/heretic2-demo-1.06a-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit desktop multilib unpacker wrapper + +DESCRIPTION="Third-person classic magical action-adventure game" +HOMEPAGE="http://www.lokigames.com/products/heretic2/ + http://www.hereticii.com/" +SRC_URI="mirror://lokigames/loki_demos/${PN}.run" +S="${WORKDIR}" + +LICENSE="LOKI-EULA" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RESTRICT="strip mirror bindist" + +RDEPEND=" + x11-libs/libX11[abi_x86_32(-)] + x11-libs/libXext[abi_x86_32(-)] +" +BDEPEND="games-util/loki_patch" + +dir=opt/${PN} +QA_PREBUILT="${dir:1}/*" +QA_TEXTRELS="opt/heretic2-demo/ref_glx.so" + +src_install() { + ABI=x86 + + local demo="data/demos/heretic2_demo" + local exe="heretic2_demo.x86" + + loki_patch patch.dat data/ || die + + # Remove bad opengl library + rm -r "${demo}/gl_drivers/" || die + + # Change to safe default of 800x600 and option of normal opengl driver + sed -i \ + -e "s:fullscreen \"1\":fullscreen \"1\"\nset vid_mode \"4\":" \ + -e "s:libGL:/usr/$(get_libdir)/libGL:" \ + "${demo}"/base/default.cfg || die + + insinto ${dir} + exeinto ${dir} + doins -r "${demo}"/* + doexe "${demo}/${exe}" + + make_wrapper ${PN} "./${exe}" "${dir}" "${dir}" + newicon "${demo}"/icon.xpm ${PN}.xpm + make_desktop_entry ${PN} "Heretic 2 (Demo)" ${PN} +} diff --git a/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild b/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild deleted file mode 100644 index 13ff487e694d..000000000000 --- a/games-action/heretic2-demo/heretic2-demo-1.06a.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils unpacker multilib games - -DESCRIPTION="Third-person classic magical action-adventure game" -HOMEPAGE="http://www.lokigames.com/products/heretic2/ - http://www.hereticii.com/" -SRC_URI="mirror://lokigames/loki_demos/${PN}.run" - -LICENSE="LOKI-EULA" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" -RESTRICT="strip mirror bindist" -QA_TEXTRELS="${GAMES_PREFIX_OPT:1}/heretic2-demo/ref_glx.so" - -DEPEND="games-util/loki_patch" -RDEPEND=" - 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}/*" - -src_install() { - ABI=x86 - - local demo="data/demos/heretic2_demo" - local exe="heretic2_demo.x86" - - loki_patch patch.dat data/ || die - - # Remove bad opengl library - rm -r "${demo}/gl_drivers/" - - # Change to safe default of 800x600 and option of normal opengl driver - sed -i \ - -e "s:fullscreen \"1\":fullscreen \"1\"\nset vid_mode \"4\":" \ - -e "s:libGL:/usr/$(get_libdir)/libGL:" \ - "${demo}"/base/default.cfg || die - - insinto "${dir}" - exeinto "${dir}" - doins -r "${demo}"/* - doexe "${demo}/${exe}" - - games_make_wrapper ${PN} "./${exe}" "${dir}" "${dir}" - newicon "${demo}"/icon.xpm ${PN}.xpm - make_desktop_entry ${PN} "Heretic 2 (Demo)" ${PN} - - prepgamesdirs -} -- cgit v1.2.3-65-gdbad