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

Contents of /games-roguelike/tome/tome-2.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jun 3 20:57:37 2004 UTC (10 years, 2 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
clean older ebuilds

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.3.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_compile() {
23 cd src
24 emake \
25 -f makefile.std \
26 COPTS="${CFLAGS}" \
27 BINDIR=${GAMES_BINDIR} \
28 LIBDIR=${GAMES_DATADIR}/${PN} \
29 || die "emake failed"
30 }
31
32 src_install() {
33 cd ${S}/src
34 emake \
35 -f makefile.std \
36 OWNER=${GAMES_USER} \
37 BINDIR=${D}/${GAMES_BINDIR} \
38 LIBDIR=${D}/${GAMES_DATADIR}/${PN} install \
39 || die "make install failed"
40 cd ${S}
41 dodoc *.txt
42
43 prepgamesdirs
44 touch ${D}/${GAMES_DATADIR}/${PN}/apex/scores.raw
45 fperms g+w ${GAMES_DATADIR}/${PN}/apex/scores.raw
46 fperms g+w ${GAMES_DATADIR}/${PN}/data
47 }
48
49 pkg_postinst() {
50 games_pkg_postinst
51 echo
52 ewarn "ToME ${PV} is not save-game compatible with previous versions."
53 echo
54 einfo "If you have older save files and you wish to continue those games,"
55 einfo "you'll need to remerge the version of ToME with which you started"
56 einfo "those save-games."
57 }

  ViewVC Help
Powered by ViewVC 1.1.20