blob: aef44d264a1c8aade824faa38cc9c591d147c04f (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit games subversion
DESCRIPTION="INterpreter for Simple TExt ADventures"
HOMEPAGE="http://instead.googlecode.com/"
ESVN_REPO_URI="http://instead.googlecode.com/svn/trunk/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""
DEPEND="=dev-lang/lua-5.1*
media-libs/libsdl
media-libs/sdl-mixer
media-libs/sdl-image
media-libs/sdl-ttf"
RDEPEND="${DEPEND}"
src_prepare() {
cp Rules.make.system Rules.make || die "Cannot copy Rules.make.system"
sed -i Rules.make \
-e 's/lua5.1/lua/' \
-e 's:PREFIX=.*:PREFIX=/usr:' \
-e 's:BIN=.*:BIN=$(DESTDIR)'"${GAMES_BINDIR}:" \
-e 's:STEADPATH=$(DESTDIR)$(PREFIX)/share:STEADPATH=$(DESTDIR)'"${GAMES_DATADIR}:" \
-e 's:DOCPATH=$(DESTDIR)$(PREFIX)/share:DOCPATH=$(DESTDIR)'"${GAMES_DATADIR}:" || die "Cannot patch Rules.make"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
prepgamesdirs
}
|