| 1 |
# Copyright 1999-2004 Gentoo Technologies, Inc. |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.2.5.ebuild,v 1.4 2004/02/20 06:55:42 mr_bones_ Exp $ |
| 4 |
|
| 5 |
inherit games |
| 6 |
|
| 7 |
MY_PV=${PV//./} |
| 8 |
DESCRIPTION="save the world from Morgoth and battle evil (or become evil ;])" |
| 9 |
HOMEPAGE="http://t-o-m-e.net/" |
| 10 |
SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tgz" |
| 11 |
|
| 12 |
LICENSE="Moria" |
| 13 |
SLOT="0" |
| 14 |
KEYWORDS="x86 ppc" |
| 15 |
|
| 16 |
RDEPEND="virtual/glibc |
| 17 |
>=sys-libs/ncurses-5 |
| 18 |
virtual/x11" |
| 19 |
|
| 20 |
S=${WORKDIR}/tome-${MY_PV}-src |
| 21 |
|
| 22 |
src_unpack() { |
| 23 |
unpack ${A} |
| 24 |
cd ${S}/src |
| 25 |
mv makefile.std makefile |
| 26 |
} |
| 27 |
|
| 28 |
src_compile() { |
| 29 |
cd src |
| 30 |
emake -j1 \ |
| 31 |
COPTS="${CFLAGS}" \ |
| 32 |
BINDIR=${GAMES_BINDIR} \ |
| 33 |
LIBDIR=${GAMES_DATADIR}/${PN} \ |
| 34 |
|| die "emake failed" |
| 35 |
} |
| 36 |
|
| 37 |
src_install() { |
| 38 |
cd src |
| 39 |
emake -j1 \ |
| 40 |
OWNER=${GAMES_USER} \ |
| 41 |
BINDIR=${D}/${GAMES_BINDIR} \ |
| 42 |
LIBDIR=${D}/${GAMES_DATADIR}/${PN} install \ |
| 43 |
|| die "make install failed" |
| 44 |
cd ${S} |
| 45 |
dodoc *.txt |
| 46 |
|
| 47 |
prepgamesdirs |
| 48 |
touch ${D}/${GAMES_DATADIR}/${PN}/apex/scores.raw |
| 49 |
fperms g+w ${GAMES_DATADIR}/${PN}/apex/scores.raw |
| 50 |
fperms g+w ${GAMES_DATADIR}/${PN}/data |
| 51 |
} |
| 52 |
|
| 53 |
pkg_postinst() { |
| 54 |
games_pkg_postinst |
| 55 |
echo |
| 56 |
ewarn "ToME ${PV} is not save-game compatible with previous versions." |
| 57 |
echo |
| 58 |
einfo "If you have older save files and you wish to continue those games," |
| 59 |
einfo "you'll need to remerge the version of ToME with which you started" |
| 60 |
einfo "those save-games." |
| 61 |
} |