Portage is a package management system used by Gentoo Linux
# ChangeLog for games-action/descent2-data
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/descent2-data/ChangeLog,v 1.5 2008/02/16 00:14:21 nyhm Exp $
16 Feb 2008; Tristan Heaven
Fix RDEPEND
06 Sep 2007; Chris Gianelloni
descent2-data-1.0.ebuild:
Removed the RDEPEND section since it was causing dependency issues.
07 Mar 2007; Chris Gianelloni
descent2-data-1.0.ebuild:
Change the FILESDIR checks to be DISTDIR, so nobody needs to keep a copy fo
this in an overlay to use that functionality.
07 Mar 2007; Chris Gianelloni
descent2-data-1.0.ebuild:
Updated the ebuild with changes from Hendrik Iben
Bredbury
*descent2-data-1.0 (09 Jan 2007)
09 Jan 2007; Chris Gianelloni
+descent2-data-1.0.ebuild:
Initial import. Ebuild by Paul Bredbury
the games-action/d2x ebuild. Closing bug #137307.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
EBUILD descent2-data-1.0.ebuild 2276 RMD160 a469cc3609df4443851077ac593fd548e109d6ae SHA1 c7f6a10102563b0d7a0fe68dd1cfc925f3b0dfc3 SHA256 7f1a0023a784e538fdbfe773ca3a0cf2f6b83f4831a9c68e9e14bc5e72e9faad
MISC ChangeLog 1144 RMD160 372dd9c3d8f3b48e638ebdd6a1da836be1cf675d SHA1 957995a51bcc9e0ba35b72dc6deb777812ccbdd0 SHA256 974a75a7d5ef1b39eed7aabcd5a79f85d6d51038456f9e6ae72c515b077eece5
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFHtirjdz7hIScOURERApeBAJ9D9JfHyfpwaONY79X5tg9Qmui7TgCfRTGB
LZ3Dt8TLTjPvWxkGd7x8Zgo=
=cBdG
-----END PGP SIGNATURE-----
# Copyright 1999-2008 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.6 2008/02/16 00:14:21 nyhm 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
# http://www.interplay.com/support/product.asp?GameID=109
# mirror://3dgamers/descent2/d2ptch${MY_PV}.exe
# See readme.txt
LICENSE="${PN}"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="videos"
# 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-0.2.5-r3 )"
RDEPEND="!
S=${WORKDIR}
dir=${GAMES_DATADIR}/d2x
pkg_setup() {
games_pkg_setup
local m f need_cd="n"
# Could have the ${SOW} file in ${DISTDIR}
if [[ -e "${DISTDIR}/${SOW}" ]] ; then
einfo "Using ${SOW} from ${DISTDIR}"
# Check that the movies are available in ${DISTDIR} if needed
if use videos ; then
for m in {intro,other,robots}-{h,l}.mvl ; do
[[ -e "${DISTDIR}/${m}" ]] || need_cd="y"
done
fi
else
need_cd="y"
fi
if [[ "${need_cd}" == "y" ]] ; then
# The Descent 2 CD is needed
cdrom_get_cds "d2data/${SOW}"
fi
}
src_unpack() {
local m f="${DISTDIR}/${SOW}"
[[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${SOW}"
# Extract level data
unarj e "${f}" || die "unarj ${f} failed"
if use videos ; then
# Include both high and low resolution movie files
for m in {intro,other,robots}-{h,l}.mvl ; do
f="${DISTDIR}/${m}"
[[ -e "${f}" ]] || f="${CDROM_ROOT}/d2data/${m}"
einfo "Copying ${m}"
cp -f "${f}" . || die "cp ${f} failed"
done
fi
rm -f endnote.txt
mkdir doc
mv -f *.txt doc
# Remove files not needed by any Linux native client
rm -f *.{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
}