summaryrefslogtreecommitdiff
path: root/games-action/descent2-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/descent2-data
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/descent2-data')
-rw-r--r--games-action/descent2-data/Manifest7
-rw-r--r--games-action/descent2-data/descent2-data-1.0.ebuild98
-rw-r--r--games-action/descent2-data/descent2-data-1.2.ebuild121
-rw-r--r--games-action/descent2-data/metadata.xml8
4 files changed, 234 insertions, 0 deletions
diff --git a/games-action/descent2-data/Manifest b/games-action/descent2-data/Manifest
new file mode 100644
index 000000000000..b5c96ac7c165
--- /dev/null
+++ b/games-action/descent2-data/Manifest
@@ -0,0 +1,7 @@
+DIST d2xptch12.tgz 158419 SHA256 61743c19baecde602c778e6ea44ef4a28bab9b8aa16a5f2772e3799863487a80 SHA512 14d59280e685a9c3d5e23e1d535f37f89768e022b795067793a994c5150685addfcacbd2dc52231804240d01d17d57b1db04335d41bc5930e3c8a845ebbb396b WHIRLPOOL ea2d14205eaa8978f22b9e9c3e20d99cf4c9ea8f43a4c688cb4cd9fc85b41b1dfdfed9fa38161ba776357a16370ede00fcc191a5d01ba1e7c4635720f0d1e77c
+DIST setup_descent2_2.1.0.10.exe 554371624 SHA256 e787d95574f8a4bf3c442ad49e837186319d3bb041a33a00df726be3be7c9750 SHA512 0db1935864eb59002cc995dfe9c40badd72d0a3dcec61092b0760481cd3d1316db17631c05043b938e4b958d696c508ce379face9baa260dcc598c77b4460618 WHIRLPOOL 1f13b652c79752772cf2a151ca7663443e8936be352ddb100e140b00bc6f88a13ba5d4dfad17cb07ed78ed5b629fad1aaeeb7424a2216b68761c4065b6f8ac3c
+EBUILD descent2-data-1.0.ebuild 2104 SHA256 ec44d7cd871b6a959d6e5c090e85358fd31d7e8a26af6ae4321d3c99df1eacd4 SHA512 8c15d74381f2ad260402ddf0e32178bf2386d7ec2ca9540724515b3325105fd8cfbc4369dcde12326aa135266d76c91a9049907743c34cce403cd427f6cf8afb WHIRLPOOL 3587d783ec8ca7673468b9d30e7218d39174e06c06d31d7dad270f4e068925abe05b2ff36ebda713e4cbb76836f1cd6feae2d8e188207b6d3d51d2d34747d13d
+EBUILD descent2-data-1.2.ebuild 2892 SHA256 b992168a579c53e85bf45cf925b88a4318718323221a7284566bd5a6aee2979e SHA512 81a9717dd2ace1af3852a2324bfbfe5226642fba07d9ce14906cb278d80385f6be77b73b58a9907364acfc45b2d38b70cc9a57fd0aa77f39cfed90edcf30ae26 WHIRLPOOL cdd4c830d9c8bdc571cce8a18abd8af198f6645e22798e0b07c264cf00756565ae2345bbd1969556cbfd5182c3cf1977da49d4abe7853de46c237b0658d02128
+MISC ChangeLog 2445 SHA256 f4ed98a453a636f856d506842347bb40683d6b848ceab6239419a417f4ebfaac SHA512 3e27dd5ba972eb769726917524eafa69088712a681cce3ebe1e4850cf9f868bc99ac2ec57b894ec627c0946c2f23d9492b8bc5ad7319a03c9fbad5ae9ab9eaa5 WHIRLPOOL 64a1c8b9f33c286078e8aaf8e01d2985ed2057d95aa44334c8ee78d9cecdf90297be055ff0b71701361b610bd06d65cf709360967ff6d4627fd96765a0fb4cda
+MISC ChangeLog-2015 1672 SHA256 6c81754fa37cdcd77ebac60c4ccd3da0f766fb083c247cd522d453d3aeefad8e SHA512 cdec5eb1d38406390314b62b16153b7d850599f3b8c650b9cffe5328b977eabbfa9edb6f083fc27946c74261b3c271a3bc74ff2510b1f62b34e4fd0ea0ff4c11 WHIRLPOOL 27b7a8799c2e36304ca038822294ffa3bff3089f5e626d2ab18adef119dcdeeafa2a5631183662edfcafeef036b65da40fe7d4f370e8b7544e7e8ddc91b4803e
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-action/descent2-data/descent2-data-1.0.ebuild b/games-action/descent2-data/descent2-data-1.0.ebuild
new file mode 100644
index 000000000000..5ab6aa099f74
--- /dev/null
+++ b/games-action/descent2-data/descent2-data-1.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils cdrom games
+
+MY_PV=${PV/./}
+SOW="descent2.sow"
+
+DESCRIPTION="Data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/product.asp?GameID=109"
+SRC_URI=""
+# Don't have a method of applying the ver 1.2 patch in Linux
+# http://www.interplay.com/support/product.asp?GameID=109
+# mirror://3dgamers/descent2/d2ptch${MY_PV}.exe
+
+# See readme.txt
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="videos"
+
+# d2x-0.2.5-r2 may include the CD data itself.
+# d2x-0.2.5-r3 does not include the CD data.
+# d2x-rebirth is favoured because it is stable.
+#RDEPEND="|| (
+# games-action/d2x-rebirth
+# >=games-action/d2x-0.2.5-r3 )"
+RDEPEND="!<games-action/d2x-0.2.5-r3"
+DEPEND="app-arch/unarj"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/d2x
+
+pkg_setup() {
+ games_pkg_setup
+
+ local m f need_cd="n"
+
+ # Could have the ${SOW} file in ${DISTDIR}
+ if [[ -e "${DISTDIR}/${SOW}" ]] ; then
+ einfo "Using ${SOW} from ${DISTDIR}"
+ # Check that the movies are available in ${DISTDIR} if needed
+ if use videos ; then
+ for m in {intro,other,robots}-{h,l}.mvl ; do
+ [[ -e "${DISTDIR}/${m}" ]] || need_cd="y"
+ done
+ fi
+ else
+ need_cd="y"
+ fi
+
+ if [[ "${need_cd}" == "y" ]] ; then
+ # The Descent 2 CD is needed
+ cdrom_get_cds "d2data/${SOW}"
+ fi
+}
+
+src_unpack() {
+ local m f="${DISTDIR}/${SOW}"
+
+ [[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${SOW}"
+ # Extract level data
+ unarj e "${f}" || die
+
+ if use videos ; then
+ # Include both high and low resolution movie files
+ for m in {intro,other,robots}-{h,l}.mvl ; do
+ f="${DISTDIR}/${m}"
+ [[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${m}"
+ einfo "Copying ${m}"
+ cp -f "${f}" . || die
+ done
+ fi
+
+ rm -f endnote.txt
+ mkdir doc
+ mv -f *.txt doc
+
+ # Remove files not needed by any Linux native client
+ rm -f *.{bat,dll,exe,ini,lst}
+}
+
+src_install() {
+ insinto "${dir}"
+ doins *
+
+ dodoc doc/*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. games-action/d2x-rebirth."
+ echo
+}
diff --git a/games-action/descent2-data/descent2-data-1.2.ebuild b/games-action/descent2-data/descent2-data-1.2.ebuild
new file mode 100644
index 000000000000..947680089288
--- /dev/null
+++ b/games-action/descent2-data/descent2-data-1.2.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CDROM_OPTIONAL="yes"
+inherit cdrom eutils
+
+# Not possible to apply official 1.2 patch under Linux. A Gentoo user
+# created Xdelta patches and the DXX-Rebirth project kindly hosted them.
+MY_PATCH="http://www.dxx-rebirth.com/download/dxx/misc/d2xptch12.tgz"
+
+# For GOG install
+MY_EXE="setup_descent2_2.1.0.10.exe"
+
+DESCRIPTION="Data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="cdinstall? ( ${MY_PATCH} )
+ !cdinstall? ( ${MY_EXE} )"
+LICENSE="descent-data"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc videos"
+RESTRICT="bindist !cdinstall? ( fetch )"
+
+# <d2x-0.2.5-r3 may include the data.
+RDEPEND="!<games-action/d2x-0.2.5-r3
+ !games-action/descent2-demodata"
+
+DEPEND="cdinstall? (
+ app-arch/unarj
+ dev-util/xdelta:3
+ )
+ !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 d2data/descent2.sow:descent2.hog
+
+ case ${CDROM_SET} in
+ 0)
+ einfo "Found Descent 2 CD"
+ unarj e "${CDROM_ABSMATCH}" || die ;;
+ 1)
+ einfo "Found Descent 2 installation"
+ cd "${CDROM_ABSMATCH%/*}" || die ;;
+ esac
+ else
+ einfo "Unpacking ${MY_EXE}. This will take a while..."
+ innoextract -e -s -p1 -L -I app -d gog "${DISTDIR}/${MY_EXE}" || die
+ cd "${WORKDIR}/gog/app" || die
+ fi
+
+ eshopts_push -s globstar nocaseglob nullglob
+
+ # Strip directories
+ # Lowercase
+ # d2{-2plyr,chaos}.* into data/missions
+ # *.dem into data/demos
+ # Documentation into doc
+ # Remainder into data
+ # Exclude Vertigo files
+
+ tar c \
+ --mode=u+w \
+ --ignore-case \
+ --xform='s:.*/::xg' \
+ --xform='s:.*:\L\0:x' \
+ --xform='s:^d2(-2plyr|chaos)\.:data/missions/\0:x' \
+ --xform='s:.*\.dem$:data/demos/\0:x' \
+ --xform='s:.*\.(pdf|txt)$:doc/\0:x' \
+ --xform='s:^[^/]+$:data/\0:x' \
+ --exclude='d2x*' \
+ --exclude='hoard.ham' \
+ --exclude='panic.*' \
+ --exclude="$(use doc || echo '*.pdf')" \
+ --exclude="$(use videos || echo '*.mvl')" \
+ *.{txt,pdf} *-h.mvl **/*.{ham,hog,mn2,pig,s11,s22} \
+ | tar x -C "${WORKDIR}"
+
+ assert "tar failed"
+ eshopts_pop
+}
+
+src_prepare() {
+ # Patch to 1.2 if necessary
+ if use cdinstall; then
+ if [[ $(md5sum data/descent2.ham) != 7f30c3d7d4087b8584b49012a53ce022* ]]; then
+ local i
+ for i in *.xdelta; do
+ xdelta3 -d -s data/"${i%.*}" "${i}" data/"${i%.*}".new || die
+ mv data/"${i%.*}"{.new,} || die
+ done
+ fi
+ fi
+
+ default
+}
+
+src_install() {
+ insinto /usr/share/games/d2x
+ 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/descent2-data/metadata.xml b/games-action/descent2-data/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/descent2-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>