ChangeLog

# ChangeLog for games-action/descent3
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/ChangeLog,v 1.27 2008/06/05 19:05:50 wolf31o2 Exp $

05 Jun 2008; Chris Gianelloni metadata.xml:
Removing myself as maintainer.

06 Mar 2008; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Fix quoting.

15 Sep 2007; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Make sure we RDEPEND on sys-libs/lib-compat-loki for all arches.

13 Sep 2007; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Changed linking of lib-compat-loki libsmpeg to be used on both amd64 and
x86, instead of just x86. Closing bug #191610.

12 Mar 2007; Marius Mauch descent3-1.4.0b-r1.ebuild:
Replacing einfo with elog

24 Oct 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Moved cdrom_get_cds to src_unpack since binary packages don't require the
original media to install as well as some general cleanup.

13 Oct 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Removing virtual/x11 from dependencies.

13 Apr 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Moved games_pkg_setup to the beginning of pkg_setup.

31 Mar 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Changing nostrip to strip.

20 Mar 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Marking stable on amd64.

11 Feb 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Added sys-libs/glibc to RDEPEND.

10 Jan 2006; Chris Gianelloni
descent3-1.4.0b-r1.ebuild:
Forgot to add libSDL to RDEPEND for x86.

10 Jan 2006; Chris Gianelloni
-descent3-1.4.0b.ebuild, descent3-1.4.0b-r1.ebuild:
Added modular X dependencies and removing older revisions.

*descent3-1.4.0b-r1 (12 Nov 2005)

12 Nov 2005; Chris Gianelloni
+descent3-1.4.0b-r1.ebuild:
Added initial support for amd64.

21 Oct 2005; Chris Gianelloni
descent3-1.4.0b.ebuild:
Added addition dir variable to games_make_wrapper for bug #109793.

06 Sep 2005; Chris Gianelloni
descent3-1.4.0b.ebuild:
Updated to use lokigames mirrors.

24 Aug 2005; Chris Gianelloni
descent3-1.4.0b.ebuild:
Changed descent3 in SRC_URI to PN variable.

09 Jun 2005; Chris Gianelloni
descent3-1.4.0b.ebuild:
Added eutils to inherit.

09 Jun 2005; Chris Gianelloni -files/descent3,
descent3-1.4.0b.ebuild:
Updated to use newer functions added since this ebuild was created.

05 Mar 2005; Chris Gianelloni
descent3-1.4.0b.ebuild:
Changing /opt/descent3 to dir variable and closing bug #84157.

03 Jun 2004; Michael Sterrett descent3-1.4.0b.ebuild:
fix use invocation

04 Apr 2004; Chris Gianelloni descent3-1.4.0b.ebuild:
Fixed crash with 2.6 and closing bug #38862.

19 Mar 2004; Chris Gianelloni descent3-1.4.0b.ebuild:
Added -p to mkdir. Closing bug #43427.

15 Feb 2004; Chris Gianelloni descent3-1.4.0b.ebuild:
Updated to use new cdrom_get_cds routine in eutils.eclass.

*descent3-1.4.0b (28 Jul 2003)

28 Jul 2003; Chris Gianelloni descent3-1.4.0b.ebuild,
files/descent3:
Initial import. Ebuild by me.

Manifest

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

DIST descent3-1.4.0a-x86.run 2736956 RMD160 3085e4cdeb4ab82b62216b1fbb8499ec24204241 SHA1 404c738c7ab456a266d8b67de502755e39a98bc3 SHA256 fe894b1cbcb16ec813c368f16549c38a3cd65514494f0be0b3095e936c9f67fe
DIST descent3-1.4.0b-x86.run 4504631 RMD160 9bbbfe072152ba78ca6adecc931240bacc373a8b SHA1 933eed84b8f7c21451f6293e62380c258b418056 SHA256 4c56ab91c332b0ccdc052fa3dd1c3a72cda204724bc98429cda22379269720e1
EBUILD descent3-1.4.0b-r1.ebuild 3128 RMD160 16d66d280f321a29b4269c1900b0f6d371999238 SHA1 b6a565fa9783c329cffc543ae312a5226ad27570 SHA256 17e5e39656a5057aee2f39546b726fc1763bbc3c11dec1f22af54c5828689073
MISC ChangeLog 3629 RMD160 87c6e025adcff245fdc0a7ce25c7e60f4032ad86 SHA1 6a84a73b7ce3160c29e1573d742c11ef2c88d607 SHA256 86bfe2df1f85973db4973d607bc0b0f0c8eeff2f0db789337bdd7dc792edfb71
MISC metadata.xml 534 RMD160 277f33e7296b9e8537a12b2e074387af7cd696a9 SHA1 70d943b1b43168757779dd8fced9eda5f93b71fd SHA256 9c50aeee71c2327cb1fe1939b5e1e9c83c1bfeac9449985826cba1d648fe5905
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkhIOQ8ACgkQkT4lNIS36YGZuQCgnarN6rosT+kAayuqIbxxaAN1
PcgAoK7eIFn6AngOSffcg7WLecPp8k+H
=NGeO
-----END PGP SIGNATURE-----

descent3-1.4.0b-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/descent3/descent3-1.4.0b-r1.ebuild,v 1.14 2008/03/06 03:17:24 wolf31o2 Exp $

inherit eutils 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"

DEPEND=""
RDEPEND="sys-libs/glibc
virtual/opengl
sys-libs/lib-compat-loki
x86? (
x11-libs/libX11
x11-libs/libXext
=media-libs/libsdl-1.2* )
amd64? (
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-sdl
>=sys-libs/lib-compat-loki-0.2 )"

GAMES_CHECK_LICENSE="yes"
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}
cd "${S}"/a
unpack_makeself ${PN}-1.4.0a-x86.run
cd "${S}"/b
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} \
|| die "copying executables"
insinto "${dir}"
doins ${CDROM_ROOT}/{FAQ.txt,README{,.mercenary},d3.hog,icon.{bmp,xpm}} \
|| die "copying files"

cd "${Ddir}"
# TODO: move this to src_unpack where it belongs
tar xzf ${CDROM_ROOT}/data.tar.gz || die "uncompressing data"
tar xzf ${CDROM_ROOT}/shared.tar.gz || die "uncompressing shared"

if use nocd; then
doins -r ${CDROM_ROOT}/missions || die "copying missions"
fi

if use videos ; then
cdrom_load_next_cd
doins -r ${CDROM_ROOT}/movies || die "copying movies"
fi

cd "${S}"/a
bin/Linux/x86/loki_patch --verify patch.dat
bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching a"
cd "${S}"/b
bin/Linux/x86/loki_patch --verify patch.dat
bin/Linux/x86/loki_patch patch.dat "${Ddir}" >& /dev/null || die "patching b"

# 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 '{}' \

dosym /usr/$(get_libdir)/loki_libsmpeg-0.4.so.0 \
"${dir}"/libsmpeg-0.4.so.0 || die "failed compatibility symlink"

games_make_wrapper descent3 ./descent3.dynamic "${dir}" "${dir}"
newicon ${CDROM_ROOT}/icon.xpm ${PN}.xpm

# Fix for 2.6 kernel crash
cd "${Ddir}"
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
}

metadata.xml




games

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.