summaryrefslogtreecommitdiff
path: root/games-action/descent1-data
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/descent1-data
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/descent1-data')
-rw-r--r--games-action/descent1-data/Manifest4
-rw-r--r--games-action/descent1-data/descent1-data-1.4a.ebuild111
-rw-r--r--games-action/descent1-data/metadata.xml8
3 files changed, 123 insertions, 0 deletions
diff --git a/games-action/descent1-data/Manifest b/games-action/descent1-data/Manifest
new file mode 100644
index 000000000000..9033a4248478
--- /dev/null
+++ b/games-action/descent1-data/Manifest
@@ -0,0 +1,4 @@
+DIST descent-game-content-10to14a-patch.zip 439853 SHA256 0f63b3c50b78b584f41b6c7d6bf71d43ea5fb5b48d173435a4e69ab9ff2c8b8b SHA512 b71ec888509c77dc8ebc94d5a172a27ab0b16ddfdcb47ac243cefe33b87bbca82df843d9a4bffad8c6f345bfefd89e9e3564353922b00c81ef993e409950eb59 WHIRLPOOL 2daf1713173b0b964133daae6122d444da0691b029a2ffbc8de6818b197d631cede855a7111495689abe32c85c0ee6c656ba2198792f7049e181e2ecd8c0ae6f
+DIST setup_descent_2.1.0.8.exe 25876928 SHA256 0d2d3e436e0011ec3eb888c8980bb8fd1c9258b0d4f9a0a7ad20a7a85c0d3046 SHA512 bab4269900b7ff0808d4495d5e01d2ebe987b5c37544e3651ff215fe8632b31ad4880ef3f968bd551b1462b9c5d1d392317f1ffec26c5314c76d8341800da876 WHIRLPOOL 1a3c09e59d36f9a2a02c7225846d76246e9612a2bc7e15559380a16cebac25453df0e084a82d9953978e1baf23715ee01f3a26a8def9c4add66e54dd821f6519
+EBUILD descent1-data-1.4a.ebuild 2697 SHA256 89aabd52048207dbaace7ed37e70e065fe44a41beab6b4e637b8c1c6ba1599aa SHA512 dabc8465ad7a923601442ed42a30c32f9c55a9dbbfe890fbf62cca4324bc628ec2e9eb38c80075f7e6ed222cbffa1c57ae071853d3316105e1648f70a3db236e WHIRLPOOL 67ad0699c8da6d5207c6d0cfb95859ac1c0716e218bcfe2aee0410f05d87c80dcd00bd66ee0a42ac1146535656fbfd7d2bde025093ff10449b4f3a8777db0868
+MISC metadata.xml 253 SHA256 2c95b2eb99144a3b66de17be35eebcf65e5a152a2ec2f176165bb9cd78e5394e SHA512 61c4689cbc649d84a00be211b7b5b98dd03e1d3f813eff370df549f2998cd4343f391c18b57cf20e4a8f4dd2311e3bfa04eb60f356f2bbac78f0b68f5091f254 WHIRLPOOL fd044f0a960e57257f4a15ab16f066bbfe9983e60cd5fc072e631efc7027306c612a01d7fbbf57eb08d957487a7ce1961250194653d6ed87ee23f20d631ef854
diff --git a/games-action/descent1-data/descent1-data-1.4a.ebuild b/games-action/descent1-data/descent1-data-1.4a.ebuild
new file mode 100644
index 000000000000..85cf48cd3a03
--- /dev/null
+++ b/games-action/descent1-data/descent1-data-1.4a.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CDROM_OPTIONAL="yes"
+inherit cdrom eutils
+
+# For GOG install
+MY_EXE="setup_descent_2.1.0.8.exe"
+
+DESCRIPTION="Data files for Descent 1"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="cdinstall? ( http://www.dxx-rebirth.com/download/dxx/misc/descent-game-content-10to14a-patch.zip )
+ !cdinstall? ( ${MY_EXE} )"
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+RESTRICT="bindist !cdinstall? ( fetch )"
+
+RDEPEND="!games-action/descent1-demodata"
+
+DEPEND="cdinstall? ( app-arch/unzip )
+ !cdinstall? ( app-arch/innoextract )"
+
+S="${WORKDIR}"
+
+pkg_nofetch() {
+ elog "You must place a copy of, or symlink to, the GOG setup package here:"
+ elog "${DISTDIR}/${MY_EXE}"
+ echo
+ elog "If you wish to install from CD-ROM instead, please enable the cdinstall flag."
+}
+
+src_unpack() {
+ if use cdinstall; then
+ default
+ cdrom_get_cds descent/descent.hog:descent.hog
+
+ case ${CDROM_SET} in
+ 0) einfo "Found Descent 1 CD" ;;
+ 1) einfo "Found Descent 1 installation" ;;
+ esac
+
+ cd "${CDROM_ABSMATCH%/*}" || die
+ else
+ innoextract -e -s -p0 -L -I app -d gog "${DISTDIR}/${MY_EXE}" || die
+ cd "${WORKDIR}/gog/app" || die
+ fi
+
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Strip directories
+ # Lowercase
+ # chaos.* into data/missions
+ # *.dem into data/demos
+ # Documentation into doc
+ # Remainder into data
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*/::xg' \
+ --xform='s:.*:\L\0:x' \
+ --xform='s:^chaos\.:data/missions/\0:x' \
+ --xform='s:.*\.dem$:data/demos/\0:x' \
+ --xform='s:.*\.(faq|pdf|txt)$:doc/\0:x' \
+ --xform='s:^[^/]+$:data/\0:x' \
+ --exclude="$(use doc || echo '*.pdf')" \
+ *.{faq,txt,pdf} **/*.{dem,hog,msn,pig} \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_prepare() {
+ if use cdinstall; then
+ case $(md5sum data/descent.hog || die) in
+ 8adfff2e5205486cd5574ac3dd0b4381*)
+ patch -p0 data/descent.hog < descent.hog.diff || die ;;
+ c792a21a30b869b1ec6d31ad64e9557e*)
+ einfo "descent.hog already patched" ;;
+ *)
+ ewarn "Unknown descent.hog detected, cannot patch" ;;
+ esac
+
+ case $(md5sum data/descent.pig || die) in
+ 7916448ae69bcc0dd4f3b057a961285f*)
+ patch -p0 data/descent.pig < descent.pig.diff || die ;;
+ fa7e48b7b1495399af838e31ac13b7da*)
+ einfo "descent.pig already patched" ;;
+ *)
+ ewarn "Unknown descent.pig detected, cannot patch" ;;
+ esac
+ fi
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/games/d1x
+ doins -r data/*
+ [[ -d doc ]] && dodoc doc/*
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent1-data/metadata.xml b/games-action/descent1-data/metadata.xml
new file mode 100644
index 000000000000..26079e608bed
--- /dev/null
+++ b/games-action/descent1-data/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>