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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Jan 20 05:47:59 2005 UTC (9 years, 7 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +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.7.ebuild,v 1.4 2004/07/01 05:21:55 mr_bones_ Exp $
4
5 inherit eutils 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.tar.bz2"
11
12 LICENSE="Moria"
13 SLOT="0"
14 KEYWORDS="x86 ~ppc ~amd64"
15 IUSE=""
16
17 RDEPEND="virtual/libc
18 dev-lang/lua
19 >=sys-libs/ncurses-5
20 virtual/x11"
21 DEPEND="${RDEPEND}
22 >=sys-apps/sed-4"
23
24 S="${WORKDIR}/tome-${MY_PV}-src"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}/src"
29 mv makefile.std makefile
30 epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
31 sed -i \
32 -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
33 || die "sed failed"
34 find "${S}" -name .cvsignore -exec rm -f \{\} \;
35 }
36
37 src_compile() {
38 cd src
39 make depend || die "make depend failed"
40 emake -j1 \
41 COPTS="${CFLAGS}" \
42 BINDIR="${GAMES_BINDIR}" \
43 LIBDIR="${GAMES_DATADIR}/${PN}" \
44 || die "emake failed"
45 }
46
47 src_install() {
48 cd src
49 make \
50 DESTDIR="${D}" \
51 OWNER="${GAMES_USER}" \
52 BINDIR="${GAMES_BINDIR}" \
53 LIBDIR="${GAMES_DATADIR}/${PN}" install \
54 || die "make install failed"
55 cd "${S}"
56 dodoc *.txt
57
58 dodir "${GAMES_STATEDIR}"
59 touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
60 prepgamesdirs
61 fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
62 fperms g+w "${GAMES_DATADIR}/${PN}/data"
63 }
64
65 pkg_postinst() {
66 games_pkg_postinst
67 echo
68 ewarn "ToME ${PV} is not save-game compatible with previous versions."
69 echo
70 einfo "If you have older save files and you wish to continue those games,"
71 einfo "you'll need to remerge the version of ToME with which you started"
72 einfo "those save-games."
73 }

  ViewVC Help
Powered by ViewVC 1.1.20