ChangeLog

# ChangeLog for games-roguelike/tome
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/ChangeLog,v 1.29 2008/01/14 20:35:11 grobian Exp $

14 Jan 2008; Fabian Groffen tome-2.3.1.ebuild,
tome-2.3.4.ebuild:
Dropped ppc-macos keyword, see you in prefix

23 Jul 2007; Mike Frysinger tome-2.3.4.ebuild:
Punt bindnow-flags usage.

12 Mar 2007; Marius Mauch tome-2.3.1.ebuild,
tome-2.3.3.ebuild:
Replacing einfo with elog

06 Dec 2006; Chris Gianelloni tome-2.3.1.ebuild,
tome-2.3.3.ebuild, tome-2.3.4.ebuild:
Remove old virtual/x11 dependency.

*tome-2.3.4 (24 Nov 2006)

24 Nov 2006; Tristan Heaven
-files/2.3.0-gentoo-paths.patch, +files/tome-2.3.4-gcc41.patch,
-files/2.2.7-gentoo-paths.patch, +files/2.3.4-gentoo-paths.patch,
-tome-2.2.7-r1.ebuild, -tome-2.3.0.ebuild, +tome-2.3.4.ebuild:
Version bump

08 Oct 2006; +files/tome-2.3.3-gcc41.patch,
tome-2.3.3.ebuild:
Failed emerging with gcc-4. Bug #145125 by Elmo Todurov

07 Mar 2006; tome-2.3.3.ebuild:
using bindnow-flags and adding ~ppc-macosx

*tome-2.3.3 (28 Feb 2006)

28 Feb 2006; +files/2.3.3-gentoo-paths.patch,
+tome-2.3.3.ebuild:
version bump (bug #104980). Thanks Andrew.
gtk, sdl and Xaw3d support added (bug #78781). Thanks Gustavo Ribeiro Alves.
ppc-macos support dropped, until media-libs/sdl-ttf & media-libs/sdl-image
are supported there

27 Feb 2006; -files/2.2.6-gentoo-paths.patch,
-files/2.2.5-gentoo-paths.patch, tome-2.2.7-r1.ebuild, tome-2.3.0.ebuild,
tome-2.3.1.ebuild:
Modular X dependency fix
Purging old patch files

20 Sep 2005; Kito tome-2.3.1.ebuild:
~ppc-macos. Closes Bug 106571

30 Mar 2005; Michael Hanselmann tome-2.3.1.ebuild:
Stable on ppc.

*tome-2.3.1 (20 Jan 2005)

20 Jan 2005; Michael Sterrett
+files/2.3.1-gentoo-paths.patch, -tome-2.2.5-r1.ebuild, -tome-2.2.6.ebuild,
-tome-2.2.7.ebuild, +tome-2.3.1.ebuild:
version bump; clean older versions

28 Dec 2004; Ciaran McCreesh :
Change encoding to UTF-8 for GLEP 31 compliance

17 Dec 2004; Joseph Jezak tome-2.2.7-r1.ebuild:
Marked ppc stable.

*tome-2.3.0 (10 Dec 2004)

10 Dec 2004; Michael Sterrett
+files/2.3.0-gentoo-paths.patch, +tome-2.3.0.ebuild:
version bump (bug #73849)

25 Sep 2004; Michael Sterrett tome-2.2.7-r1.ebuild:
Enable text mode again - #bug #53640

*tome-2.2.7-r1 (25 Jun 2004)

25 Jun 2004; Michael Sterrett +tome-2.2.7-r1.ebuild:
rev bump for the upgrade

25 Jun 2004; Michael Sterrett
+files/2.2.7-gentoo-paths.patch, tome-2.2.7.ebuild:
Restore the patching of the source (bug #53636)

03 Jun 2004; Michael Sterrett tome-2.2.3.ebuild,
tome-2.2.5.ebuild:
clean older ebuilds

*tome-2.2.7 (03 Jun 2004)

03 Jun 2004; Michael Sterrett tome-2.2.7.ebuild:
version bump (bug #52560)

*tome-2.2.6 (14 Apr 2004)

14 Apr 2004; Michael Sterrett tome-2.2.6.ebuild,
files/2.2.6-gentoo-paths.patch:
version bump (bug #47185)

30 Mar 2004; Michael Sterrett tome-1.0.0.ebuild:
remove version 1

10 Mar 2004; Daniel Ahlberg tome-2.2.5-r1.ebuild:
Adding amd64 keyword. Closing #44154.

*tome-2.2.5-r1 (14 Jan 2004)

14 Jan 2004; Mike Frysinger :
Move scores file out of /usr/share and into /var/games #37594.

*tome-2.2.5 (01 Jan 2004)

01 Jan 2004; Mike Frysinger :
Version bumpage #36798.

*tome-2.2.3 (13 Oct 2003)

13 Oct 2003; Mike Frysinger :
Version bumpage #30817 to also fix permissions #26334.

*tome-2.2.2 (28 Jul 2003)

28 Jul 2003; Michael Sterrett tome-2.2.2.ebuild:
version bump (bug 23729)

Note that this version of ToME is not save game compatible with older versions.

28 Jul 2003; Michael Sterrett tome-2.2.1.ebuild:
added a pkg_postinst() that warns people that the new version of ToME isn't
compatible with their old save games.

28 Jul 2003; Michael Sterrett tome-1.0.0.ebuild,
tome-2.0.0.ebuild, tome-2.1.0.ebuild, tome-2.2.1.ebuild:
fix DESCRIPTION

01 Jul 2003; tome-2.2.1.ebuild:
mark stable for ppc. SpanKY said so.

*tome-2.2.1 (01 Jul 2003)

01 Jul 2003; Michael Sterrett tome-2.2.1.ebuild:
added ~ppc keyword (bug 23729)

30 Jun 2003; Michael Sterrett :
version bump - seems to install in roughly the same way as 2.1

30 Jun 2003; Michael Sterrett tome-2.1.0.ebuild:
use sed -i
sed file in unpack
install more docs
more error checking

*tome-2.1.0 (21 Dec 2002)

21 Dec 2002; J.Alberto Suarez L. tome-2.1.0.ebuild:
New version.
Maybe it have a little incompatibility with Tome-2.0.

*tome-2.0.0 (13 Feb 2003)

29 Jun 2003; Daniel Ahlberg :
Added missing changelog entry.

*tome-1.0.0 (1 Aug 2002)

1 Aug 2002; Jose Alberto Suárez López tome-1.0.0.ebuild:
First release.

Manifest

AUX 2.3.1-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
AUX 2.3.4-gentoo-paths.patch 1172 RMD160 284efaf1eb85ee17f9d08719179f835cf4777100 SHA1 c6c2203e504cd0b09f91c2ed8e3eec9fd6f84280 SHA256 e1978ac45c002a7b40a1f7123430a8aa1a4c45c48468b8d0bd6c670041a538e1
AUX tome-2.3.4-gcc41.patch 605 RMD160 b69a831cb23c35f16fe01db2ef052129591e0247 SHA1 e95496729d1a007a83ce9f48157f9a030f83c7fc SHA256 876a5505048b845fa44f6051f10b93f93a8acc5fb2f252ba1c7b57e454532626
DIST tome-231-src.tar.bz2 2638388 RMD160 f25e609409f0055a8fa3fade72bc42eb97e07338 SHA1 1c611663c90865cc56d90334efdf333e9ba70ed2 SHA256 f764e1e059c86f2591f5a830dccbfada67dba176b1dbbab6e562663deb979971
DIST tome-234-src.tar.bz2 2909120 RMD160 c932786beda9aa7f7bc5d371a8f6fe18089ec94c SHA1 933d498c3823672be70168921af8e73affcfabf3 SHA256 ed119f4dfbb0ba984092cd6fddf5dcb5dc2c12a66d57be791182b8274c4f463b
EBUILD tome-2.3.1.ebuild 2031 RMD160 d3427a3c980cd43dff2a2f56564df0f887e1a1aa SHA1 151d5746aec0c62dfcd5d5e9b3f2ef901e333bc3 SHA256 66d7559a06e108b9ca158a7b6b212ee03fb8e4acb0e4bb674e03c9bd85867ab0
EBUILD tome-2.3.4.ebuild 3592 RMD160 3005b491f047d9983a505435afd85e02c8b9fee4 SHA1 c666d1313e884938d7f1ddb577095e995722ef91 SHA256 b53d85ef91ea2474d64c61c4679e1a71fbb1f91ea9613cbd7479094182922c2f
MISC ChangeLog 5486 RMD160 866f1a3ad8393d7c71e06bf4ad04cc2b704d7ad3 SHA1 6b5914eb98b13492e0a85c01ded483b4f45ac71d SHA256 3560445e1ef98a3fa3b9a229cb09b1d00c8b6af6c47e6acfbe986efc951679d2
MISC metadata.xml 158 RMD160 cbd9984bb6b426c8c9cee5022fe0a26261612fea SHA1 be5251fa1dacef5c41b74761bb1c8c54fb633b9e SHA256 1423a4fdd4a79b1728a2056d9e300f7e1074253095d82726218d9e9b953888a3

files

metadata.xml




games

tome-2.3.1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.3.1.ebuild,v 1.7 2008/01/14 20:35:11 grobian Exp $

inherit eutils games

MY_PV=${PV//./}
DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])"
HOMEPAGE="http://t-o-m-e.net/"
SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2"

LICENSE="Moria"
SLOT="0"
KEYWORDS="~amd64 ppc x86"
IUSE=""

RDEPEND=">=sys-libs/ncurses-5
x11-libs/libX11"
DEPEND="${REDEPEND}
x11-misc/makedepend"

S="${WORKDIR}/tome-${MY_PV}-src"

src_unpack() {
unpack ${A}
cd "${S}/src"
mv makefile.std makefile
epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
sed -i \
-e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
|| die "sed failed"
#bug #53640
sed -i \
-e "s:-DUSE_X11:-DUSE_GCU -DUSE_X11:" \
-e "s:-lX11:-lncurses -lX11:" \
makefile \
|| die "sed failed"
find "${S}" -name .cvsignore -exec rm -f \{\} \;
find "${S}/lib/edit" -type f -exec chmod a-x \{\} \;
}

src_compile() {
cd src
make depend || die "make depend failed"
emake ./tolua || die "emake ./tolua failed"
emake \
COPTS="${CFLAGS}" \
BINDIR="${GAMES_BINDIR}" \
LIBDIR="${GAMES_DATADIR}/${PN}" \
|| die "emake failed"
}

src_install() {
cd src
make \
DESTDIR="${D}" \
OWNER="${GAMES_USER}" \
BINDIR="${GAMES_BINDIR}" \
LIBDIR="${GAMES_DATADIR}/${PN}" install \
|| die "make install failed"
cd "${S}"
dodoc *.txt

dodir "${GAMES_STATEDIR}"
touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
prepgamesdirs
fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
#FIXME: something has to be done about this.
fperms g+w "${GAMES_DATADIR}/${PN}/data"
}

pkg_postinst() {
games_pkg_postinst
echo
ewarn "ToME ${PV} is not save-game compatible with previous versions."
echo
elog "If you have older save files and you wish to continue those games,"
elog "you'll need to remerge the version of ToME with which you started"
elog "those save-games."
}

tome-2.3.4.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.3.4.ebuild,v 1.4 2008/01/14 20:35:11 grobian Exp $

inherit eutils games

MY_PV=${PV//./}
DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])"
HOMEPAGE="http://t-o-m-e.net/"
SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tar.bz2"

LICENSE="Moria"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="X Xaw3d gtk sdl"

RDEPEND=">=sys-libs/ncurses-5
X? ( x11-libs/libX11 )
Xaw3d? ( x11-libs/libXaw )
sdl? (
media-libs/sdl-ttf
media-libs/sdl-image
media-libs/libsdl )
gtk? ( !amd64? ( =x11-libs/gtk+-1.2* ) )"
DEPEND="${REDEPEND}
x11-misc/makedepend"

S=${WORKDIR}/tome-${MY_PV}-src

src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-gcc41.patch
cd "src"
mv makefile.std makefile
epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
sed -i \
-e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
|| die "sed failed"

find "${S}" -name .cvsignore -exec rm -f \{\} \;
find "${S}/lib/edit" -type f -exec chmod a-x \{\} \;
}

src_compile() {
local GENTOO_INCLUDES="" GENTOO_DEFINES="-DUSE_GCU " GENTOO_LIBS="-lncurses"
if use sdl || use X || use gtk || use Xaw3d; then
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_EGO_GRAPHICS -DUSE_TRANSPARENCY \
-DSUPPORT_GAMMA"
fi
if use sdl || use X || use Xaw3d; then
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_PRECISE_CMOVIE -DUSE_UNIXSOCK "
fi
if use sdl; then
GENTOO_INCLUDES="${GENTOO_INCLUDES} $(sdl-config --cflags)"
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_SDL "
GENTOO_LIBS="${GENTOO_LIBS} $(sdl-config --libs) -lSDL_image -lSDL_ttf"
fi
if use X; then
GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include "
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_X11 "
GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lX11 "
fi
if use Xaw3d; then
GENTOO_INCLUDES="${GENTOO_INCLUDES} -I/usr/X11R6/include "
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_XAW "
GENTOO_LIBS="${GENTOO_LIBS} -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 "
fi
if use gtk; then
if use amd64; then
einfo "gtk support will not be built for amd64"
else
GENTOO_INCLUDES="${GENTOO_INCLUDES} $(gtk-config --cflags)"
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_GTK "
GENTOO_LIBS="${GENTOO_LIBS} $(gtk-config --libs) "
fi
fi
GENTOO_INCLUDES="${GENTOO_INCLUDES} -Ilua -I."
GENTOO_DEFINES="${GENTOO_DEFINES} -DUSE_LUA"
cd src
make \
INCLUDES="${GENTOO_INCLUDES}" \
DEFINES="${GENTOO_DEFINES}" \
depend || die "make depend failed"
emake ./tolua || die "emake ./tolua failed"
emake \
COPTS="${CFLAGS}" \
INCLUDES="${GENTOO_INCLUDES}" \
DEFINES="${GENTOO_DEFINES}" \
LIBS="${GENTOO_LIBS}" \
BINDIR="${GAMES_BINDIR}" \
LIBDIR="${GAMES_DATADIR}/${PN}" \
|| die "emake failed"
}

src_install() {
cd src
make \
DESTDIR="${D}" \
OWNER="${GAMES_USER}" \
BINDIR="${GAMES_BINDIR}" \
LIBDIR="${GAMES_DATADIR}/${PN}" install \
|| die "make install failed"
cd "${S}"
dodoc *.txt

dodir "${GAMES_STATEDIR}"
touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
prepgamesdirs
fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
#FIXME: something has to be done about this.
fperms g+w "${GAMES_DATADIR}/${PN}/data"
}

pkg_postinst() {
games_pkg_postinst
echo
ewarn "ToME ${PV} is not save-game compatible with 2.3.0 and previous versions."
echo
ewarn "If you have older save files and you wish to continue those games,"
ewarn "you'll need to remerge the version of ToME with which you started"
ewarn "those save-games."
}