--- /dev/null
+# ChangeLog for games-action/descent2-demodata
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-action/descent2-demodata/ChangeLog,v 1.1 2007/01/09 21:38:20 wolf31o2 Exp $
+
+*descent2-demodata-1.0 (09 Jan 2007)
+
+ 09 Jan 2007; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+ +descent2-demodata-1.0.ebuild:
+ Initial import. Ebuild by Paul Bredbury <brebs@sent.com> and based loosely
+ on games-action/d2x. Closing bug #137306.
+
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST d2demo10.zip 4306833 RMD160 6f78a26823bd8470a68a810a7a1bb592a5a4807d SHA1 f44941194dd8f5521615499df826d4e148ba26e9 SHA256 f8d005670fe5cd17e07ca9bf4022f1045aed436639c37f1e83dd647e14fcec1f
+EBUILD descent2-demodata-1.0.ebuild 1914 RMD160 85ba7fde6848292cd342d0a3529702b63ea27df9 SHA1 2922c546a0c9703ad1b9f7b1ee8083ccac202380 SHA256 225c23561d90ac47bbd7f8483f97e3618d3b1930bc4ca1cc25bb191ea8cb3f7e
+MD5 c5b6abafabc666f56bfce94886a25b86 descent2-demodata-1.0.ebuild 1914
+RMD160 85ba7fde6848292cd342d0a3529702b63ea27df9 descent2-demodata-1.0.ebuild 1914
+SHA256 225c23561d90ac47bbd7f8483f97e3618d3b1930bc4ca1cc25bb191ea8cb3f7e descent2-demodata-1.0.ebuild 1914
+MISC ChangeLog 497 RMD160 6695d5aa57d8655e1cb796c659246f682e61c876 SHA1 39bad95e44befbd84cbbfd24a6452088aa07cc93 SHA256 4d81be5efb5a3cdae532c75375b8212325766728aefe7fa0edfbf14b15fb06de
+MD5 19fde1a20cbbce25cafa1673dac00406 ChangeLog 497
+RMD160 6695d5aa57d8655e1cb796c659246f682e61c876 ChangeLog 497
+SHA256 4d81be5efb5a3cdae532c75375b8212325766728aefe7fa0edfbf14b15fb06de ChangeLog 497
+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 2147b86a14cb5daf4359c9f229444a01 files/digest-descent2-demodata-1.0 220
+RMD160 a274022c4b2684b0327fc69550b81e7342b76060 files/digest-descent2-demodata-1.0 220
+SHA256 a90288e67de568af1dcb28d5907be120ef081b8eafc143680a3ff7d4082219ca files/digest-descent2-demodata-1.0 220
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.6 (GNU/Linux)
+
+iD8DBQFFpAtSkT4lNIS36YERAhN5AJ42ZLZHupjo5X520q77JZjPAqy3hgCfSydY
+9WfCZRPW6Ux69XuxJF9RrHI=
+=VagY
+-----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-demodata/descent2-demodata-1.0.ebuild,v 1.1 2007/01/09 21:38:20 wolf31o2 Exp $
+
+inherit eutils games
+
+MY_PN="d2demo"
+MY_PV=${PV/./}
+DEMO="${MY_PN}${MY_PV}.zip"
+
+DESCRIPTION="Demo data files for Descent 2"
+HOMEPAGE="http://www.interplay.com/games/product.asp?GameID=109"
+SRC_URI="ftp://ftp.funet.fi/pub/msdos/games/interplay/${DEMO}
+ ftp://ftp.demon.co.uk/pub/ibmpc/dos/games/descent/${DEMO}
+ mirror://3dgamers/descent2/${DEMO}"
+
+# See README.TXT
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~ppc ~x86"
+IUSE=""
+
+# d2x-0.2.5-r2 may include the demo data itself
+# d2x-0.2.5-r3 does not include the demo data
+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
+
+src_unpack() {
+ unpack ${A}
+
+ # This is much more fun than simply downloading
+ # http://www.icculus.org/d2x/data/d2shar10.tar.gz
+ unarj e D2_1.SOW || die "unarj D2_1.SOW failed"
+ mv ${MY_PN}.ham{,1}
+ unarj e D2_2.SOW || die "unarj D2_2.SOW failed"
+ mv ${MY_PN}.ham{,2}
+ mv ${MY_PN}.pig{,2}
+ unarj e D2_3.SOW || die "unarj D2_3.SOW failed"
+ mv ${MY_PN}.pig{,3}
+
+ # From the sows, big porkie pies shall grow
+ cat ${MY_PN}.ham{1,2} > ${MY_PN}.ham || die "cat ham failed"
+ cat ${MY_PN}.pig{2,3} > ${MY_PN}.pig || die "cat pig failed"
+
+ rm *{1,2,3} *.{386,bat,ubn} eregcard.ini
+ mkdir controls
+ mv *.b50 descent2.* controls
+}
+
+src_install() {
+ insinto "${dir}"
+ # The "controls" directory is not needed, nor the ini files
+ doins d2demo.* || die "doins failed"
+
+ dodoc *.txt
+
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+
+ elog "A client is needed to run the game, e.g. games-action/d2x-xl."
+ elog "Not all Descent 2 clients support the demo data."
+ echo
+}
--- /dev/null
+MD5 03c6d632febb27d5f64f38305a9fc467 d2demo10.zip 4306833
+RMD160 6f78a26823bd8470a68a810a7a1bb592a5a4807d d2demo10.zip 4306833
+SHA256 f8d005670fe5cd17e07ca9bf4022f1045aed436639c37f1e83dd647e14fcec1f d2demo10.zip 4306833
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>games</herd>
+</pkgmetadata>