summaryrefslogtreecommitdiff
path: root/games-action/descent2-vertigo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-action/descent2-vertigo
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'games-action/descent2-vertigo')
-rw-r--r--games-action/descent2-vertigo/Manifest2
-rw-r--r--games-action/descent2-vertigo/descent2-vertigo-1.0.ebuild57
-rw-r--r--games-action/descent2-vertigo/metadata.xml8
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..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 @@
+<?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>