From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- games-action/descent2-vertigo/Manifest | 2 + .../descent2-vertigo/descent2-vertigo-1.0.ebuild | 57 ++++++++++++++++++++++ games-action/descent2-vertigo/metadata.xml | 8 +++ 3 files changed, 67 insertions(+) create mode 100644 games-action/descent2-vertigo/Manifest create mode 100644 games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild create mode 100644 games-action/descent2-vertigo/metadata.xml (limited to 'games-action/descent2-vertigo') diff --git a/games-action/descent2-vertigo/Manifest b/games-action/descent2-vertigo/Manifest new file mode 100644 index 000000000000..58c57d3cd478 --- /dev/null +++ b/games-action/descent2-vertigo/Manifest @@ -0,0 +1,2 @@ +EBUILD descent2-vertigo-1.0.ebuild 1229 BLAKE2B dee8ad22a6b82e791a04aa684003153264263890fa359621f20d2e8e3ed922accbf949d16e8031ce62f138f1db06015d57cdf684e33e7b48c3950928c0af12fe SHA512 0a87a258fd54843a54cf2eefbdef662edd7c42a9d58e804b49b0f696d3cdb0e7e70160cdbf467814c0d1bec422e1ea9b3e700d636ca8cf79473ea92e65734a79 +MISC metadata.xml 253 BLAKE2B 443ca9c8d4f6801169382e87a0ecd1385c56e65229209e7200f9d313ef380e92ae8d7dc3c38e5989a4166289f22607a20b1e13bb960fff6b3d9f78629d8ab020 SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 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 +} diff --git a/games-action/descent2-vertigo/metadata.xml b/games-action/descent2-vertigo/metadata.xml new file mode 100644 index 000000000000..26079e608bed --- /dev/null +++ b/games-action/descent2-vertigo/metadata.xml @@ -0,0 +1,8 @@ + + + + + games@gentoo.org + Gentoo Games Project + + -- cgit v1.2.3