summaryrefslogtreecommitdiff
path: root/games-action/descent3
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/descent3
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/descent3')
-rw-r--r--games-action/descent3/Manifest6
-rw-r--r--games-action/descent3/descent3-1.4.0b-r2.ebuild101
-rw-r--r--games-action/descent3/metadata.xml11
3 files changed, 118 insertions, 0 deletions
diff --git a/games-action/descent3/Manifest b/games-action/descent3/Manifest
new file mode 100644
index 000000000000..3da0e7e09d32
--- /dev/null
+++ b/games-action/descent3/Manifest
@@ -0,0 +1,6 @@
+DIST descent3-1.4.0a-x86.run 2736956 SHA256 fe894b1cbcb16ec813c368f16549c38a3cd65514494f0be0b3095e936c9f67fe SHA512 e6c5d6a678c46374c5d5d40589d40906378fd17ebb658778a2d052a71cd069877a43eb83b344b41473fe443e886c3b07283ea9de908df4ab8584638670114ecc WHIRLPOOL 94b1ee3ee90c4cef0327fb3fc77fd4d5cd15be34a8716b3747fb4dc3c903f337310f39471c94bfebac5ffda1454634079ee092d56a40d65c3c1715e32f1bff39
+DIST descent3-1.4.0b-x86.run 4504631 SHA256 4c56ab91c332b0ccdc052fa3dd1c3a72cda204724bc98429cda22379269720e1 SHA512 912afcf51a2f4f8cacb231e318d4837c64b2f762109244c083760b5e580298d4166fea0878ee2d344b841c788d673896a09d0052ebea59dead637d834e826db3 WHIRLPOOL b878d30ccb418fced583c1fe94535d2d23c410aa973d25b72291c2f77567127ccc1d17bab0f0f72af6168386250c212dcdf9981b13b774fc77e80c5d2b854859
+EBUILD descent3-1.4.0b-r2.ebuild 2648 SHA256 8fbc517cb00c024352a8af3b923d4f37a6e52c3962b8e261e2bafa7afb0fe525 SHA512 3c7aff0955aeac46ae72f89b993b78922a5450dce9f5d7270a42461c32cefef4795b48eddcae13405d4f35c71fd27adecfc922dfedfdff2a2773f0c364f37566 WHIRLPOOL 8a22ef6c9b3e53a85e7947a6db5c115ef928b0e2004081b7c033a275e4fac741cce5096897d6332a8e0fc31e7ea670449c0b40f39563ad656c009e030454d002
+MISC ChangeLog 2442 SHA256 ed9329315f2f1927f408959edbb0e87f9ad5e61f8b391d596f995dbdd003e2d9 SHA512 b54d5c1e32a701ae34f5fbe0d722caee201856abf0318d9f070a6b95901eb94f484a66e31aaf31883c1155774b70c1ec25f0f8030103b9cdc6839a74c60102eb WHIRLPOOL 6d763e5529d25e1bf14645ca551f054e592afb5c7fc4444b5f5bebaa2b2c222165ccdc888d87b2ea091e178042aad76e644020a427503f9d70bc851b2ae25d5d
+MISC ChangeLog-2015 4606 SHA256 60dcc0548506e5791cbd634728ea52c389216a73029dbc59120a9d506924fc3c SHA512 e1cefc689ee7c4dea8cfe8a7a331cc38ab33dc504753bd47c959096e76554f67de25bdaa22bb05fb4095dac7177d791b8e8363f01af12e7463939b3732a59ae2 WHIRLPOOL 7e8d0469a1fa5f1d6c2638390aad9cf32c8d6ad065e775bf34b371031881b00af3a2bea62d06a7f8c2c16498c8587a8873bf014eaffc8fa1a0d850cfcbadf7c3
+MISC metadata.xml 625 SHA256 d017becff4f8bd6a83f664e396021d1b8d76b6e6d3c80c35aecfa3ebd1a96ea8 SHA512 a72428b67ed26503112a398643a53230dd80f0b48a0ffa53a4ade00647302147aa042acc91cc6b49fef0d23efeafef2e33d4caea4bb845de7f6d08e8c943d71c WHIRLPOOL 56cdffc7b42ac2bacd479615aea830d1381584c8e5b82b2fd739b55a636d2942ce3360de4b07b89eaca8b293da0c24ebbb4a4a582932728628fc43afa6e6cd10
diff --git a/games-action/descent3/descent3-1.4.0b-r2.ebuild b/games-action/descent3/descent3-1.4.0b-r2.ebuild
new file mode 100644
index 000000000000..d663b28ab8f5
--- /dev/null
+++ b/games-action/descent3/descent3-1.4.0b-r2.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils unpacker cdrom multilib games
+
+IUSE="nocd videos"
+DESCRIPTION="Descent 3 - 3-Dimensional indoor/outdoor spaceship combat"
+HOMEPAGE="http://www.lokigames.com/products/descent3/"
+SRC_URI="mirror://lokigames/${PN}/${PN}-1.4.0a-x86.run
+ mirror://lokigames/${PN}/${P}-x86.run"
+
+LICENSE="LOKI-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="strip"
+
+RDEPEND="sys-libs/glibc
+ media-libs/libsdl[abi_x86_32(-)]
+ media-libs/smpeg[abi_x86_32(-)]
+ virtual/opengl[abi_x86_32(-)]
+ x11-libs/libX11[abi_x86_32(-)]
+ x11-libs/libXext[abi_x86_32(-)]"
+
+dir=${GAMES_PREFIX_OPT}/${PN}
+Ddir=${D}/${dir}
+
+pkg_setup() {
+ games_pkg_setup
+ if use videos ; then
+ ewarn "The installed game takes about 1.2GB of space!"
+ elif use nocd ; then
+ ewarn "The installed game takes about 510MB of space!"
+ else
+ ewarn "The installed game takes about 220MB of space!"
+ fi
+}
+
+src_unpack() {
+ if use videos ; then
+ cdrom_get_cds missions/d3.mn3 movies/level1.mve
+ else
+ cdrom_get_cds missions/d3.mn3
+ fi
+ mkdir -p "${S}"/{a,b} || die
+ cd "${S}"/a || die
+ unpack_makeself ${PN}-1.4.0a-x86.run
+ cd "${S}"/b || die
+ unpack_makeself ${P}-x86.run
+}
+
+src_install() {
+ einfo "Copying files... this may take a while..."
+ exeinto "${dir}"
+ doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{${PN},nettest}
+ insinto "${dir}"
+ doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}}
+
+ cd "${Ddir}" || die
+ # TODO: move this to src_unpack where it belongs
+ tar xzf ${CDROM_ROOT}/data.tar.gz || die
+ tar xzf ${CDROM_ROOT}/shared.tar.gz || die
+
+ if use nocd; then
+ doins -r ${CDROM_ROOT}/missions
+ fi
+
+ if use videos ; then
+ cdrom_load_next_cd
+ doins -r ${CDROM_ROOT}/movies
+ fi
+
+ cd "${S}"/a || die
+ bin/Linux/x86/loki_patch --verify patch.dat || die
+ bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die
+ cd "${S}"/b || die
+ bin/Linux/x86/loki_patch --verify patch.dat || die
+ bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die
+
+ # now, since these files are coming off a cd, the times/sizes/md5sums wont
+ # be different ... that means portage will try to unmerge some files (!)
+ # we run touch on ${D} so as to make sure portage doesnt do any such thing
+ find "${Ddir}" -exec touch '{}' +
+
+ games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}"
+ newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm
+
+ # Fix for 2.6 kernel crash
+ cd "${Ddir}" || die
+ ln -sf ppics.hog PPics.Hog
+
+ prepgamesdirs
+ make_desktop_entry ${PN} "Descent 3" ${PN}
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "To play the game run:"
+ elog " descent3"
+ echo
+}
diff --git a/games-action/descent3/metadata.xml b/games-action/descent3/metadata.xml
new file mode 100644
index 000000000000..bdbb1bdaaee9
--- /dev/null
+++ b/games-action/descent3/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+<longdescription>
+Descent 3 is a first-person 3-D action flight-sim which takes place in both indoor and outdoor arenas. The game was ported to Linux by the now defunct Loki Entertainment and is commercial software. You can still pick up a copy from Tuxgames (http://www.tuxgames.com), but supplies are limited, as the publisher is no longer in business.
+</longdescription>
+</pkgmetadata>