diff options
author | Sam James <sam@gentoo.org> | 2021-04-06 20:42:15 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-06 20:42:52 +0000 |
commit | 145562a09630d956da651ab073acb6fb30a6d246 (patch) | |
tree | 7b024d46e791754bc907575048895e6c6f57b60b /games-fps | |
parent | games-fps/qudos: port to EAPI 7, games.eclass-- (diff) | |
download | gentoo-145562a09630d956da651ab073acb6fb30a6d246.tar.gz gentoo-145562a09630d956da651ab073acb6fb30a6d246.tar.bz2 gentoo-145562a09630d956da651ab073acb6fb30a6d246.zip |
games-fps/tribes2: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r-- | games-fps/tribes2/tribes2-25034.ebuild | 35 |
1 files changed, 17 insertions, 18 deletions
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" } |