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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Fri Jan 22 20:39:52 2010 UTC (4 years, 8 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.6.13/cvs/Linux i686)

1 # Copyright 1999-2009 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.1.ebuild,v 1.8 2009/07/31 13:51:20 nyhm 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="~amd64 ppc x86"
15 IUSE=""
16
17 RDEPEND=">=sys-libs/ncurses-5
18 x11-libs/libX11"
19 DEPEND="${RDEPEND}
20 x11-misc/makedepend"
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 elog "If you have older save files and you wish to continue those games,"
78 elog "you'll need to remerge the version of ToME with which you started"
79 elog "those save-games."
80 }

  ViewVC Help
Powered by ViewVC 1.1.20