ChangeLog

# ChangeLog for games-action/d2x
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d2x/ChangeLog,v 1.22 2007/09/06 22:32:18 wolf31o2 Exp $

06 Sep 2007; Chris Gianelloni d2x-0.2.5-r3.ebuild:
Added ~amd64 to KEYWORDS and removing comment about d2x-xl since it isn't in
the tree and isn't mature enough for inclusion at this time.

30 Jul 2007; Michael Sterrett d2x-0.2.5-r3.ebuild:
some nasm vs yasm sed patches

07 Mar 2007; Chris Gianelloni d2x-0.2.5-r2.ebuild,
d2x-0.2.5-r3.ebuild:
Change all instances of [ to [[.

*d2x-0.2.5-r3 (09 Jan 2007)

09 Jan 2007; Chris Gianelloni +d2x-0.2.5-r3.ebuild:
Revision bump to use the new split data/demodata.

24 Oct 2006; Chris Gianelloni d2x-0.2.5-r2.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 Apr 2006; Chris Gianelloni -d2x-0.2.5-r1.ebuild:
Removing old ebuild.

03 Jan 2006; Michael Sterrett d2x-0.2.5-r2.ebuild:
fix up LICENSE (bug #117344)

02 Jan 2006; Michael Hanselmann d2x-0.2.5-r2.ebuild:
Stable on ppc.

14 Dec 2005; Chris Gianelloni d2x-0.2.5-r2.ebuild:
Marking stable on x86 and closing bug #115518.

*d2x-0.2.5-r2 (29 Sep 2005)

29 Sep 2005; Chris Gianelloni
+files/d2x-0.2.5-dofpcalcs-macro.patch, +d2x-0.2.5-r2.ebuild:
Added patch submitted to bug #98810 and closing bug #98810.

07 Jul 2005; Chris Gianelloni d2x-0.2.5-r1.ebuild:
Changed nocd to cdinstall, since it is optional and breaks interactivity.

09 Jan 2005; Sven Wegener d2x-0.2.5-r1.ebuild:
Added missing parentheses in SRC_URI/*DEPEND/LICENSE.

26 Aug 2004; Michael Sterrett d2x-0.2.5-r1.ebuild:
typo fix from Bertram Felgenhauer via bug #61833

28 Jun 2004; Chris Gianelloni d2x-0.2.5-r1.ebuild:
Fixing cdinstall and closing bug #55417.

27 Jun 2004; Aron Griffis d2x-0.2.5-r1.ebuild,
d2x-0.2.5.ebuild:
QA - fix use invocation

*d2x-0.2.5-r1 (26 Jun 2004)

26 Jun 2004; Chris Gianelloni +d2x-0.2.5-r1.ebuild:
Added ability to install from CD. Ebuild submitted by David A. Bestor
to bug #49487. Closing bug.

30 Mar 2004; Michael Sterrett d2x-0.2.5.ebuild:
don't rdepend on nasm

*d2x-0.2.5 (19 Jul 2003)

19 Jul 2003; Mike Frysinger :
Initial import. Ebuild submitted by Rob Cakebread #24843.

Manifest

AUX 0.2.5-shellscripts.patch 747 RMD160 ef943a17656e7467f88360a9e53eff07ef1384c8 SHA1 f137924772a4be33e12483c274f61f5d2640ea40 SHA256 f9ef51252aa0c1641df8949a016609c8e5a38de8143efb3a04757f395148de5f
AUX d2x-0.2.5-dofpcalcs-macro.patch 584 RMD160 30b0226da26b07aac6bca853431dd83c7f1d3468 SHA1 de16899310ebdd5f4c7760aa5f8dba5fc72f533b SHA256 4e6354b18218eb19699d2ba4698f50715056338ebad37b8ad16f17e27e543672
DIST d2shar10.tar.gz 4311406 RMD160 59b8d60ef5ef982c40b986ba45a8a4360db6309b SHA1 fc1740e21858244d33e840d85949084407e2e2fb SHA256 65e8dc58dc7fdc09696f9a06c814ef81f8026b330976a2dced3347895814a4af
DIST d2x-0.2.5.tar.gz 2015249 RMD160 c27f16f52eaa7a3742cd7b50307bd747ab79c96f SHA1 b68c74fdc1f31a5ae32f6b27d7d3658e7e0dbdca SHA256 906d2f1703f68d27db6c20f98d9a85eea4b2e207faa536cf3362af9e5da0375b
EBUILD d2x-0.2.5-r2.ebuild 2664 RMD160 4836bed2982e4ff1738009acbb4b2191afc6bc36 SHA1 252a686ae29b7562edc0a4f77bf6700f93cc500d SHA256 7ca54570ba7f066a52dfe9a86eb9354e792db14d4adcfbb7f866b58b16f961fa
EBUILD d2x-0.2.5-r3.ebuild 2384 RMD160 ebffcf8ec124714376ac3d69629950a77555708b SHA1 b07f9dd744a266559a9cef9efe405c97f77cbe80 SHA256 1a002fe1a4f2076a4120cab95e2b7c9cdfd6c893ebe4ef7778b829f9fd29a92a
MISC ChangeLog 2810 RMD160 a720fd40fbe6d1c27392cd308b308d939291eaa4 SHA1 45c8799c3297651accff6b97c320b8b8e5651a16 SHA256 c2cedd730cb9c1112a7f452f1b8a8761a3a9f60eebb15f3f12630a64e770e49f
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3

d2x-0.2.5-r2.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d2x/d2x-0.2.5-r2.ebuild,v 1.6 2007/03/07 15:55:40 wolf31o2 Exp $

inherit flag-o-matic eutils games

DATAFILE="d2shar10"
DESCRIPTION="Descent 2"
HOMEPAGE="http://icculus.org/d2x/"
SRC_URI="http://icculus.org/d2x/src/${P}.tar.gz
!cdinstall? ( http://icculus.org/d2x/data/${DATAFILE}.tar.gz )"

LICENSE="D1X"
SLOT="0"
KEYWORDS="ppc x86"
IUSE="cdinstall debug opengl ggi svga"

RDEPEND="media-libs/libsdl
media-libs/sdl-image
cdinstall? ( app-arch/unarj )
opengl? ( virtual/opengl )
ggi? ( media-libs/libggi )
svga? ( media-libs/svgalib )"
DEPEND="${RDEPEND}
x86? ( dev-lang/nasm )"

src_unpack() {
unpack ${A}
if use cdinstall ; then
if [[ ! -e "${DISTDIR}"/descent2.sow ]] ; then
cdrom_get_cds d2data
if [[ -e ${CDROM_ROOT}/d2data/descent2.sow ]] ; then
export CDROM_ROOT=${CDROM_ROOT}/d2data
einfo "Found the original Descent2 CD"
einfo "Copying descent2.sow to ${DISTDIR}"
cp ${CDROM_ROOT}/descent2.sow "${DISTDIR}"/descent2.sow
else
die "You need the original Descent2 CD"
fi
fi
cd "${WORKDIR}"
mkdir SOW
cd SOW
unarj e "${DISTDIR}"/descent2.sow
fi
rm *.{exe,bat}
cd "${S}"
epatch "${FILESDIR}"/${PV}-shellscripts.patch
epatch "${FILESDIR}"/${P}-dofpcalcs-macro.patch
}

src_compile() {
# --disable-network --enable-console
local myconf="$(use_enable x86 assembler)"
use debug \
&& myconf="${myconf} --enable-debug --disable-release" \
|| myconf="${myconf} --disable-debug --enable-release"
# we do this because each of the optional guys define the same functions
# in gr, thus when they go to link they cause redefine errors ...
# we build each by it self, save the binary file, clean up, and start over
mkdir my-bins
for ren in sdl $(useq opengl && echo opengl) \
$(useq svga && echo svga) $(useq ggi && echo ggi)
do
[[ "${ren}" == "sdl" ]] \
&& renconf="" \
|| renconf="--with-${ren}"
[[ "${ren}" == "svga" ]] \
&& defflags="-DSVGALIB_INPUT" \
|| defflags=""
make distclean
egamesconf \
${myconf} \
${renconf} \
--datadir="${GAMES_DATADIR_BASE}" \
|| die "conf ${ren}"
emake CXXFLAGS="${CXXFLAGS} ${defflags}" || die "build ${ren}"
mv d2x* my-bins/
done
}

src_install() {
make install DESTDIR="${D}" || die
dogamesbin my-bins/*
dodir "${GAMES_DATADIR}"/${PN}
if use cdinstall ; then
cp -r "${WORKDIR}"/SOW/* "${D}/${GAMES_DATADIR}"/${PN}/
else
cp -r "${WORKDIR}"/${DATAFILE}/* "${D}/${GAMES_DATADIR}"/${PN}/
fi
dodoc AUTHORS ChangeLog NEWS README* TODO readme.txt
prepgamesdirs
}

d2x-0.2.5-r3.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/d2x/d2x-0.2.5-r3.ebuild,v 1.6 2007/09/06 22:32:18 wolf31o2 Exp $

inherit eutils flag-o-matic games

DESCRIPTION="Descent 2 engine from Icculus"
HOMEPAGE="http://icculus.org/d2x/"
SRC_URI="http://icculus.org/d2x/src/${P}.tar.gz"

LICENSE="D1X"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="cdinstall debug opengl ggi svga"

COMMON="media-libs/libsdl
media-libs/sdl-image
opengl? ( virtual/opengl )
ggi? ( media-libs/libggi )
svga? ( media-libs/svgalib )"
RDEPEND="${COMMON}
cdinstall? ( games-action/descent2-data )
!cdinstall? ( games-action/descent2-demodata )"
DEPEND="${COMMON}
x86? ( dev-lang/nasm )"

dir=${GAMES_DATADIR}/${PN}

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${PV}-shellscripts.patch"
epatch "${FILESDIR}/${P}-dofpcalcs-macro.patch"

sed -i \
-e '/NASMFLAGS/s/-d/-D/g' \
configure \
2d/Makefile.in \
|| die "sed failed"
sed -i \
-e 's/@@/l@@/' \
2d/tmerge_a.asm \
|| die "sed failed"
}

src_compile() {
local defflags myconf ren renconf

# --disable-network --enable-console
local myconf="$(use_enable x86 assembler)"
use debug \
&& myconf="${myconf} --enable-debug --disable-release" \
|| myconf="${myconf} --disable-debug --enable-release"
# we do this because each of the optional guys define the same functions
# in gr, thus when they go to link they cause redefine errors ...
# we build each by it self, save the binary file, clean up, and start over
mkdir my-bins
for ren in sdl $(useq opengl && echo opengl) \
$(useq svga && echo svga) $(useq ggi && echo ggi) ; do
[[ "${ren}" == "sdl" ]] \
&& renconf="" \
|| renconf="--with-${ren}"
[[ "${ren}" == "svga" ]] \
&& defflags="-DSVGALIB_INPUT" \
|| defflags=""
make distclean
egamesconf \
${myconf} \
${renconf} \
--datadir="${GAMES_DATADIR_BASE}" \
|| die "conf ${ren}"
emake CXXFLAGS="${CXXFLAGS} ${defflags}" || die "build ${ren}"
mv d2x* my-bins/
done
}

src_install() {
make DESTDIR="${D}" install || die "make install failed"
dogamesbin my-bins/* || die "dogamesbin failed"
dodoc AUTHORS ChangeLog NEWS README* TODO readme.txt

prepgamesdirs
}

pkg_postinst() {
games_pkg_postinst

elog "d2x-rebirth is a more up-to-date version of this game."
echo
}

files

metadata.xml




games