diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild')
-rw-r--r-- | games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild new file mode 100644 index 000000000000..d49ee60b99d0 --- /dev/null +++ b/games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cdrom eutils + +DESCRIPTION="Data files for Descent 2: The Vertigo Series" +HOMEPAGE="http://www.interplay.com/games/descent.php" +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 +} |