summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-07 01:11:56 +0000
committerSam James <sam@gentoo.org>2021-04-07 01:57:33 +0000
commita0d11d7445ba7bebaeeaf0793d41e6e2ec21bd21 (patch)
tree48017498c4b4681d457fa02c538eab5e7d0e1c7b /games-fps
parentgames-fps/quake1-data: port to EAPI 7, games.eclass-- (diff)
downloadgentoo-a0d11d7445ba7bebaeeaf0793d41e6e2ec21bd21.tar.gz
gentoo-a0d11d7445ba7bebaeeaf0793d41e6e2ec21bd21.tar.bz2
gentoo-a0d11d7445ba7bebaeeaf0793d41e6e2ec21bd21.zip
games-fps/quake2-textures: port to EAPI 7, games.eclass--
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/quake2-textures/quake2-textures-0_beta8-r1.ebuild (renamed from games-fps/quake2-textures/quake2-textures-0_beta8.ebuild)23
1 files changed, 7 insertions, 16 deletions
diff --git a/games-fps/quake2-textures/quake2-textures-0_beta8.ebuild b/games-fps/quake2-textures/quake2-textures-0_beta8-r1.ebuild
index 7c3cf3832513..c26a14c1fc59 100644
--- a/games-fps/quake2-textures/quake2-textures-0_beta8.ebuild
+++ b/games-fps/quake2-textures/quake2-textures-0_beta8-r1.ebuild
@@ -1,40 +1,31 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils versionator games
+EAPI=7
-MY_PV=$(get_version_component_range 2-2)
+MY_PV=$(ver_cut 2-)
MY_PV=${MY_PV/beta/}
DESCRIPTION="High-resolution textures for Quake 2"
HOMEPAGE="http://jdolan.tastyspleen.net/"
SRC_URI="http://jdolan.tastyspleen.net/pak${MY_PV}.zip"
+S="${WORKDIR}"
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
-RESTRICT="mirror bindist"
-RDEPEND=""
-DEPEND="app-arch/unzip"
+RESTRICT="bindist mirror"
-S=${WORKDIR}
-dir=${GAMES_DATADIR}/quake2
+BDEPEND="app-arch/unzip"
src_install() {
- insinto "${dir}"/baseq2
+ insinto /usr/share/quake2/baseq2
doins *.pak
-
dodoc README
-
- prepgamesdirs
}
pkg_postinst() {
- games_pkg_postinst
-
elog "Use a recent Quake 2 client to take advantage of"
elog "these textures, e.g. qudos or quake2-icculus."
echo