ChangeLog

# ChangeLog for games-action/descent2-demodata
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/descent2-demodata/ChangeLog,v 1.4 2008/02/14 22:21:38 nyhm Exp $

14 Feb 2008; Tristan Heaven
descent2-demodata-1.0.ebuild:
Fix RDEPEND to not include unzip and unarj

06 Sep 2007; Chris Gianelloni
descent2-demodata-1.0.ebuild:
Removed the RDEPEND section since it was causing dependency issues and
adding ~amd64 to KEYWORDS.

03 Feb 2007; Tristan Heaven
descent2-demodata-1.0.ebuild:
Add app-arch/unzip to DEPEND

*descent2-demodata-1.0 (09 Jan 2007)

09 Jan 2007; Chris Gianelloni +metadata.xml,
+descent2-demodata-1.0.ebuild:
Initial import. Ebuild by Paul Bredbury and based loosely
on games-action/d2x. Closing bug #137306.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

DIST d2demo10.zip 4306833 RMD160 6f78a26823bd8470a68a810a7a1bb592a5a4807d SHA1 f44941194dd8f5521615499df826d4e148ba26e9 SHA256 f8d005670fe5cd17e07ca9bf4022f1045aed436639c37f1e83dd647e14fcec1f
EBUILD descent2-demodata-1.0.ebuild 1923 RMD160 aac1de16c402e2edce64f019358e48667c7c1a90 SHA1 54dce20a8ae02934431bb0ff0af0f7dec34c39a8 SHA256 c1c922beef264544f2db4628ab1b75df2641f0a72f8dcbcbbb06e8441b227785
MISC ChangeLog 920 RMD160 dce205faa13c94e6a5c79784f2e84fbd50406aac SHA1 71b03283889e5887932a1944f43e832a805f953f SHA256 d10968f72edaf2d2718474d478868eb184cb055a1797117cacf086ec88f6ebd5
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHtL74dz7hIScOURERAuFCAJ9Wv70F3N0esNIs0wLDqRIcnsgOxQCfbaXU
KmcD7B029Ad50LxiFSHFSEM=
=7vG6
-----END PGP SIGNATURE-----

descent2-demodata-1.0.ebuild

# Copyright 1999-2008 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.6 2008/02/14 22:21:38 nyhm 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="~amd64 ~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-0.2.5-r3 )"
RDEPEND="! DEPEND="app-arch/unzip
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
}

metadata.xml




games