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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Nov 24 15:44:18 2006 UTC (7 years, 7 months ago) by nyhm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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.2.7-r1.ebuild,v 1.6 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 }
40
41 src_compile() {
42 cd src
43 make depend || die "make depend failed"
44 emake -j1 \
45 COPTS="${CFLAGS}" \
46 BINDIR="${GAMES_BINDIR}" \
47 LIBDIR="${GAMES_DATADIR}/${PN}" \
48 || die "emake failed"
49 }
50
51 src_install() {
52 cd src
53 make \
54 DESTDIR="${D}" \
55 OWNER="${GAMES_USER}" \
56 BINDIR="${GAMES_BINDIR}" \
57 LIBDIR="${GAMES_DATADIR}/${PN}" install \
58 || die "make install failed"
59 cd "${S}"
60 dodoc *.txt
61
62 dodir "${GAMES_STATEDIR}"
63 touch "${D}/${GAMES_STATEDIR}/${PN}-scores.raw"
64 prepgamesdirs
65 fperms g+w "${GAMES_STATEDIR}/${PN}-scores.raw"
66 fperms g+w "${GAMES_DATADIR}/${PN}/data"
67 }
68
69 pkg_postinst() {
70 games_pkg_postinst
71 echo
72 ewarn "ToME ${PV} is not save-game compatible with previous versions."
73 echo
74 einfo "If you have older save files and you wish to continue those games,"
75 einfo "you'll need to remerge the version of ToME with which you started"
76 einfo "those save-games."
77 }

  ViewVC Help
Powered by ViewVC 1.1.20