diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/descent2-vertigo |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/descent2-vertigo')
-rw-r--r-- | games-action/descent2-vertigo/Manifest | 2 | ||||
-rw-r--r-- | games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild | 57 | ||||
-rw-r--r-- | games-action/descent2-vertigo/metadata.xml | 8 |
3 files changed, 67 insertions, 0 deletions
diff --git a/games-action/descent2-vertigo/Manifest b/games-action/descent2-vertigo/Manifest new file mode 100644 index 000000000000..73d5ab200f2b --- /dev/null +++ b/games-action/descent2-vertigo/Manifest @@ -0,0 +1,2 @@ +EBUILD descent2-vertigo-1.0.ebuild 1229 SHA256 1ac9a6acafb4ff907b72147cf70808f272459766c7cb92cc22957e090ca47cbe SHA512 0a87a258fd54843a54cf2eefbdef662edd7c42a9d58e804b49b0f696d3cdb0e7e70160cdbf467814c0d1bec422e1ea9b3e700d636ca8cf79473ea92e65734a79 WHIRLPOOL e225d0175ffbd52f224cdf659770acf9399836fd0a9ea9a62c8279c479dd786b7cebf742585b691b3ce3bb0f1c11c9bd3bf14ad9308f4a2dd41b48a12392be32 +MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> +</pkgmetadata> |