--- /dev/null
+# ChangeLog for games-action/descent2-data
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/descent2-data/ChangeLog,v 1.1 2007/01/09 21:28:10 wolf31o2 Exp $
+
+*descent2-data-1.0 (09 Jan 2007)
+
+ 09 Jan 2007; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +descent2-data-1.0.ebuild:
+ Initial import. Ebuild by Paul Bredbury <brebs@sent.com> based loosely on
+ the games-action/d2x ebuild. Closing bug #137307.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+EBUILD descent2-data-1.0.ebuild 1823 RMD160 6e4c0aa05a6148c23a5216859a52d8f31f106537 SHA1 d10bcc579c377410db576c98d8ebc24e0aca61d7 SHA256 ad8e03022ea983de34af895c4d1a1f8b4c059b8f4e12d9926ac3193994437790
+MD5 77db3410f93b462112b97a330a606364 descent2-data-1.0.ebuild 1823
+RMD160 6e4c0aa05a6148c23a5216859a52d8f31f106537 descent2-data-1.0.ebuild 1823
+SHA256 ad8e03022ea983de34af895c4d1a1f8b4c059b8f4e12d9926ac3193994437790 descent2-data-1.0.ebuild 1823
+MISC ChangeLog 488 RMD160 9c72e0db6d5466929ba48e130005454589a04994 SHA1 5a82cb5114657afcbb2f30bd5e69aea32b2e7742 SHA256 c82583bb4029351f725cd052d80a0a15fe0107e485a68c10368e61688c5d83c1
+MD5 dd0148e4d5ac28a25b58c506bf8f6b04 ChangeLog 488
+RMD160 9c72e0db6d5466929ba48e130005454589a04994 ChangeLog 488
+SHA256 c82583bb4029351f725cd052d80a0a15fe0107e485a68c10368e61688c5d83c1 ChangeLog 488
+MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
+MD5 f17b9b8fa07a38914fe1c03268f51678 metadata.xml 158
+RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea metadata.xml 158
+SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3 metadata.xml 158
+MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-descent2-data-1.0 0
+RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 files/digest-descent2-data-1.0 0
+SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 files/digest-descent2-data-1.0 0
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFpAjwkT4lNIS36YERAlZcAJ9OLmg6zJlNICBmQ4dwSZsF5p4+BgCglVn4
+oOEy2lTqIT8Uz3hCwVR/zQQ=
+=Hdda
+-----END PGP SIGNATURE-----
--- /dev/null
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/descent2-data/descent2-data-1.0.ebuild,v 1.1 2007/01/09 21:28:10 wolf31o2 Exp $
+
+inherit eutils 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
+# ftp://ftp.interplay.com/pub/patches/d2ptch${MY_PV}.exe
+# mirror://3dgamers/descent2/d2ptch${MY_PV}.exe
+
+# See readme.txt
+LICENSE="${PN}"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+
+# 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-xl
+ >=games-action/d2x-0.2.5-r3 )"
+DEPEND="!<games-action/d2x-0.2.5-r3
+ app-arch/unarj"
+
+S=${WORKDIR}
+dir=${GAMES_DATADIR}/d2x
+
+pkg_setup() {
+ games_pkg_setup
+
+ # Could have the $SOW file in $FILESDIR, in a local overlay
+ if [[ -e "${FILESDIR}/${SOW}" ]] ; then
+ einfo "Using ${SOW} from ${FILESDIR}"
+ else
+ cdrom_get_cds d2data
+ if [[ -e "${CDROM_ROOT}/d2data/${SOW}" ]] ; then
+ einfo "Found the original Descent 2 CD."
+ else
+ die "You need the original Descent 2 CD"
+ fi
+ fi
+}
+
+src_unpack() {
+ local f="${FILESDIR}/${SOW}"
+ [[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${SOW}"
+ unarj e "${f}" || die "unarj ${f} failed"
+
+ rm endnote.txt
+ mkdir doc
+ mv *.txt doc
+
+ # Remove files not needed by any Linux native client
+ rm *.{bat,dll,exe,ini,lst}
+}
+
+src_install() {
+ insinto "${dir}"
+ doins * || die "doins * failed"
+
+ dodoc doc/*
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. games-action/d2x-rebirth."
+ echo
+}
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>