/[gentoo-x86]/games-roguelike/tome/tome-2.2.5-r1.ebuild
Gentoo

Contents of /games-roguelike/tome/tome-2.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jan 20 05:47:59 2005 UTC (9 years, 6 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
version bump; clean older versions

1 # Copyright 1999-2004 Gentoo Foundation
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-r1.ebuild,v 1.6 2004/07/01 05:21:55 mr_bones_ Exp $
4
5 inherit games eutils
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 ~amd64"
15 IUSE=""
16
17 RDEPEND="virtual/libc
18 >=sys-libs/ncurses-5
19 virtual/x11"
20
21 S="${WORKDIR}/tome-${MY_PV}-src"
22
23 src_unpack() {
24 unpack ${A}
25 cd ${S}/src
26 mv makefile.std makefile
27 epatch ${FILESDIR}/${PV}-gentoo-paths.patch
28 sed -i "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c
29 }
30
31 src_compile() {
32 cd src
33 emake -j1 \
34 COPTS="${CFLAGS}" \
35 BINDIR=${GAMES_BINDIR} \
36 LIBDIR=${GAMES_DATADIR}/${PN} \
37 || die "emake failed"
38 }
39
40 src_install() {
41 cd src
42 emake -j1 \
43 OWNER=${GAMES_USER} \
44 BINDIR=${D}/${GAMES_BINDIR} \
45 LIBDIR=${D}/${GAMES_DATADIR}/${PN} install \
46 || die "make install failed"
47 cd ${S}
48 dodoc *.txt
49
50 dodir ${GAMES_STATEDIR}
51 touch ${D}/${GAMES_STATEDIR}/${PN}-scores.raw
52 prepgamesdirs
53 fperms g+w ${GAMES_STATEDIR}/${PN}-scores.raw
54 fperms g+w ${GAMES_DATADIR}/${PN}/data
55 }
56
57 pkg_postinst() {
58 games_pkg_postinst
59 echo
60 ewarn "ToME ${PV} is not save-game compatible with previous versions."
61 echo
62 einfo "If you have older save files and you wish to continue those games,"
63 einfo "you'll need to remerge the version of ToME with which you started"
64 einfo "those save-games."
65 }

  ViewVC Help
Powered by ViewVC 1.1.20