summaryrefslogtreecommitdiff
path: root/games-action/descent2-demodata
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/descent2-demodata')
-rw-r--r--games-action/descent2-demodata/Manifest3
-rw-r--r--games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild54
-rw-r--r--games-action/descent2-demodata/metadata.xml8
3 files changed, 65 insertions, 0 deletions
diff --git a/games-action/descent2-demodata/Manifest b/games-action/descent2-demodata/Manifest
new file mode 100644
index 000000000000..5fe6e56e9546
--- /dev/null
+++ b/games-action/descent2-demodata/Manifest
@@ -0,0 +1,3 @@
+DIST d2demo10.zip 4306833 BLAKE2B ae075d0c3d46fc262696e9ec0a7c70cb676295e5fa95c357f81235f46bc00e686de0cf2f611571f215601683a72fc4c41d5abd525e3de46e208c5fe4c34b2c87 SHA512 a4229be701a4b2fc28d3c71591a477d242c1c784dc233c1e9ca6b798b3774de9744d8a91b0b80904b3fe63e1285b79234bf48681cddaeca702b3d9ce4c2b6fab
+EBUILD descent2-demodata-1.0-r1.ebuild 1225 BLAKE2B 13dd6e43e86ed44aed116c0ea11b99d528f37f6427c767325c426dea8d39d67949b320f60aa0b7c584fba6928bb8da31f176439c51fa65dfc235d37b0b1e245b SHA512 a4120c6394aadd9c0f9b3b3e2362b8cfce66114dbff76226770edd35247efcfb6827b0d25b720eca376ed96f872b8bb79748ab24138c2e408d0dc814086cd0fc
+MISC metadata.xml 249 BLAKE2B 7113a758d7abc93accec998a8843d8ef51ca8b72d72e659e224d5cec2a1a6a63e6c0605958091532ac6e51fa0d501ca4fd9f3f4a9e55baeb31519a02971b465f SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118
diff --git a/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
new file mode 100644
index 000000000000..79abcc78e76d
--- /dev/null
+++ b/games-action/descent2-demodata/descent2-demodata-1.0-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="d2demo"
+DEMO="${MY_PN}${PV//.}.zip"
+
+DESCRIPTION="Demo data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/descent.php"
+SRC_URI="ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}"
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# <d2x-0.2.5-r3 may include the data.
+RDEPEND="!<games-action/d2x-0.2.5-r3
+ !games-action/descent2-data"
+
+DEPEND="app-arch/unzip
+ app-arch/unarj"
+
+S="${WORKDIR}"
+
+src_unpack() {
+ default
+
+ # This is much more fun than simply downloading
+ # http://www.icculus.org/d2x/data/d2shar10.tar.gz
+ unarj e D2_1.SOW || die
+ mv ${MY_PN}.ham{,1} || die
+ unarj e D2_2.SOW || die
+ mv ${MY_PN}.ham{,2} || die
+ mv ${MY_PN}.pig{,2} || die
+ unarj e D2_3.SOW || die
+ mv ${MY_PN}.pig{,3} || die
+
+ # From the sows, big porkie pies shall grow
+ cat ${MY_PN}.ham{1,2} > ${MY_PN}.ham || die
+ cat ${MY_PN}.pig{2,3} > ${MY_PN}.pig || die
+}
+
+src_install() {
+ insinto /usr/share/games/d2x
+ doins *.{ham,hog,pig}
+ insinto /usr/share/games/d2x/demos
+ doins *.dem
+ dodoc *.txt
+}
+
+pkg_postinst() {
+ elog "A client is needed to run the game, e.g. games-action/dxx-rebirth."
+ echo
+}
diff --git a/games-action/descent2-demodata/metadata.xml b/games-action/descent2-demodata/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-action/descent2-demodata/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>