summaryrefslogtreecommitdiff
blob: 0785bdaffc94ad7b814749859dc9503174240165 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-roguelike/tome/tome-2.1.0.ebuild,v 1.1 2003/09/10 04:59:58 vapier Exp $

MY_PV=${PV//./}
S="${WORKDIR}/tome-${MY_PV}-src"

DESCRIPTION="A roguelike game, where you can save the world from Morgoth and battle evil (or become evil ;])"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
SRC_URI="http://t-o-m-e.net/dl/src/tome-${MY_PV}-src.tgz"
HOMEPAGE="http://t-o-m-e.net/"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5
	>=x11-base/xfree-4.0"

src_unpack() {
	unpack ${A}
	cd ${S}/src && \
	sed -i \
		-e "s:-O1:${CFLAGS}:" \
		makefile.std || die "sed makefile.std failed"
}

src_compile() {
	cd src && \
	make -f makefile.std \
		BINDIR=/usr/games/bin \
		LIBDIR=/usr/share/games/tome/lib || die "make failed"
}

src_install() {
	cd ${S}/src && \
	make -f makefile.std \
		BINDIR=${D}/usr/games/bin \
		LIBDIR=${D}/usr/share/games/tome/lib install || \
			die "make install failed"
	cd ${S} && \
	dodoc *.txt || die "dodoc failed"
}