From 145562a09630d956da651ab073acb6fb30a6d246 Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 6 Apr 2021 20:42:15 +0000 Subject: games-fps/tribes2: port to EAPI 7, games.eclass-- Signed-off-by: Sam James --- games-fps/tribes2/tribes2-25034.ebuild | 35 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'games-fps/tribes2') diff --git a/games-fps/tribes2/tribes2-25034.ebuild b/games-fps/tribes2/tribes2-25034.ebuild index b6863191127a..0822d3ca5536 100644 --- a/games-fps/tribes2/tribes2-25034.ebuild +++ b/games-fps/tribes2/tribes2-25034.ebuild @@ -1,12 +1,14 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 -inherit eutils unpacker cdrom games +EAPI=7 + +inherit cdrom desktop unpacker wrapper DESCRIPTION="Tribes 2 - Team Combat on an Epic Scale" HOMEPAGE="http://www.lokigames.com/products/tribes2/" SRC_URI="http://www.libsdl.org/projects/${PN}/release/${P}-cdrom-x86.run" +S="${WORKDIR}" LICENSE="LOKI-EULA" SLOT="0" @@ -14,21 +16,21 @@ SLOT="0" # time to try to figure it out but this definitely needs to stay -amd64 until # someone does fix the patching. KEYWORDS="-amd64 ~x86" -IUSE="" RESTRICT="mirror bindist strip" -DEPEND="sys-libs/glibc - games-util/loki_patch" -RDEPEND="${DEPEND} - virtual/opengl" - -S=${WORKDIR} +DEPEND=" + games-util/loki_patch + sys-libs/glibc +" +RDEPEND=" + ${DEPEND} + virtual/opengl +" -dir=${GAMES_PREFIX_OPT}/${PN} -Ddir=${D}/${dir} +dir=opt/${PN} +Ddir="${ED}"/${dir} pkg_setup() { - games_pkg_setup ewarn "The installed game takes about 507MB of space!" } @@ -59,17 +61,14 @@ src_install() { # now, since these files are coming off a cd, the times/sizes/md5sums wont # be different ... that means portage will try to unmerge some files (!) # we run touch on ${D} so as to make sure portage doesnt do any such thing - find "${Ddir}" -exec touch '{}' + + find "${Ddir}" -exec touch '{}' + || die newicon "${CDROM_ROOT}"/icon.xpm tribes2.xpm - games_make_wrapper t2launch ./t2launch "${dir}" "${dir}" + make_wrapper t2launch ./t2launch "${dir}" "${dir}" make_desktop_entry t2launch "Tribes 2" tribes2 - - prepgamesdirs } pkg_postinst() { - games_pkg_postinst elog "To play the game run:" elog " t2launch" } -- cgit v1.2.3-65-gdbad