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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Nov 24 15:44:18 2006 UTC (8 years ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump
(Portage version: 2.1.2_rc2-r1)
 (Signed Manifest commit)

1 # Copyright 1999-2006 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.3.0.ebuild,v 1.3 2006/02/27 23:34:27 tupone 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=">=sys-libs/ncurses-5
18 || ( x11-libs/libX11 virtual/x11 )"
19 DEPEND="${RDEPEND}
20 || ( x11-misc/makedepend virtual/x11 )"
21
22 S="${WORKDIR}/tome-${MY_PV}-src"
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}/src"
27 mv makefile.std makefile
28 epatch "${FILESDIR}/${PV}-gentoo-paths.patch"
29 sed -i \
30 -e "s:GENTOO_DIR:${GAMES_STATEDIR}:" files.c init2.c \
31 || die "sed failed"
32 #bug #53640
33 sed -i \
34 -e "s:-DUSE_X11:-DUSE_GCU -DUSE_X11:" \
35 -e "s:-lX11:-lncurses -lX11:" \
36 makefile \
37 || die "sed failed"
38 find "${S}" -name .cvsignore -exec rm -f \{\} \;
39 find "${S}/lib/edit" -type f -exec chmod a-x \{\} \;
40 }
41
42 src_compile() {
43 cd src
44 make depend || die "make depend failed"
45 emake ./tolua || die "emake ./tolua failed"
46 emake \
47 COPTS="${CFLAGS}" \
48 BINDIR="${GAMES_BINDIR}" \
49 LIBDIR="${GAMES_DATADIR}/${PN}" \
50 || die "emake failed"
51 }
52
53 src_install() {
54 cd src
55 make \
56 DESTDIR="${D}" \
57 OWNER="${GAMES_USER}" \
58 BINDIR="${GAMES_BINDIR}" \
59 LIBDIR="${GAMES_DATADIR}/${PN}" install \
60 || die "make install failed"
61 cd "${S}"
62 dodoc *.txt
63
64 dodir "${GAMES_STATEDIR}"
65 touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
66 prepgamesdirs
67 fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
68 #FIXME: something has to be done about this.
69 fperms g+w "${GAMES_DATADIR}/${PN}/data"
70 }
71
72 pkg_postinst() {
73 games_pkg_postinst
74 echo
75 ewarn "ToME ${PV} is not save-game compatible with previous versions."
76 echo
77 einfo "If you have older save files and you wish to continue those games,"
78 einfo "you'll need to remerge the version of ToME with which you started"
79 einfo "those save-games."
80 }

  ViewVC Help
Powered by ViewVC 1.1.20