From b80c07cb08d673d0030a1c92ea3bcbcb04478134 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Sun, 9 Jun 2024 12:31:27 +0100 Subject: games-action/descent2-vertigo: EAPI 8 Signed-off-by: James Le Cuirot --- .../descent2-vertigo-1.0-r1.ebuild | 56 +++++++++++++++++++++ .../descent2-vertigo/descent2-vertigo-1.0.ebuild | 58 ---------------------- 2 files changed, 56 insertions(+), 58 deletions(-) create mode 100644 games-action/descent2-vertigo/descent2-vertigo-1.0-r1.ebuild delete mode 100644 games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild (limited to 'games-action') diff --git a/games-action/descent2-vertigo/descent2-vertigo-1.0-r1.ebuild b/games-action/descent2-vertigo/descent2-vertigo-1.0-r1.ebuild new file mode 100644 index 000000000000..3c88671110c4 --- /dev/null +++ b/games-action/descent2-vertigo/descent2-vertigo-1.0-r1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cdrom estack + +DESCRIPTION="Data files for Descent 2: The Vertigo Series" +HOMEPAGE="https://www.interplay.com" +S="${WORKDIR}" +LICENSE="descent-data" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="videos" +RESTRICT="bindist" + +src_unpack() { + cdrom_get_cds vertigo/d2x.hog:hoard.ham + + case ${CDROM_SET} in + 0) einfo "Found Descent 2 Vertigo Series CD" ;; + 1) einfo "Found Descent 2 Vertigo Series installation" ;; + esac + + cd "${CDROM_ABSMATCH%/*}" || die + eshopts_push -s globstar nocaseglob nullglob + + # Strip directories + # Lowercase + # *.{hog,mn2} into data/missions + # Remainder into data + + tar c \ + --mode=u+w \ + --ignore-case \ + --xform='s:.*/::xg' \ + --xform='s:.*:\L\0:x' \ + --xform='s:.*\.(hog|mn2)$:data/missions/\0:x' \ + --xform='s:^[^/]+$:data/\0:x' \ + --exclude="$(use videos || echo '*.mvl')" \ + **/{hoard.ham,d2x-h.mvl,{d2x,panic}.{hog,mn2}}* \ + | tar x -C "${WORKDIR}" + + assert "tar failed" + eshopts_pop +} + +src_install() { + insinto /usr/share/games/d2x + doins -r data/* +} + +pkg_postinst() { + elog "A client is needed to run the game, e.g. games-action/dxx-rebirth." + echo +} diff --git a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild deleted file mode 100644 index ababa913308d..000000000000 --- a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild +++ /dev/null @@ -1,58 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit cdrom estack - -DESCRIPTION="Data files for Descent 2: The Vertigo Series" -HOMEPAGE="https://www.interplay.com" - -LICENSE="descent-data" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="videos" -RESTRICT="bindist" - -S="${WORKDIR}" - -src_unpack() { - cdrom_get_cds vertigo/d2x.hog:hoard.ham - - case ${CDROM_SET} in - 0) einfo "Found Descent 2 Vertigo Series CD" ;; - 1) einfo "Found Descent 2 Vertigo Series installation" ;; - esac - - cd "${CDROM_ABSMATCH%/*}" || die - eshopts_push -s globstar nocaseglob nullglob - - # Strip directories - # Lowercase - # *.{hog,mn2} into data/missions - # Remainder into data - - tar c \ - --mode=u+w \ - --ignore-case \ - --xform='s:.*/::xg' \ - --xform='s:.*:\L\0:x' \ - --xform='s:.*\.(hog|mn2)$:data/missions/\0:x' \ - --xform='s:^[^/]+$:data/\0:x' \ - --exclude="$(use videos || echo '*.mvl')" \ - **/{hoard.ham,d2x-h.mvl,{d2x,panic}.{hog,mn2}}* \ - | tar x -C "${WORKDIR}" - - assert "tar failed" - eshopts_pop -} - -src_install() { - insinto /usr/share/games/d2x - doins -r data/* -} - -pkg_postinst() { - elog "A client is needed to run the game, e.g. games-action/dxx-rebirth." - echo -} -- cgit v1.2.3-65-gdbad