blob: 889764ffb7505a9e4d06c16ee68e0e34ff852769 (
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
43
44
45
46
47
48
49
50
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/dungeon/dungeon-3.2.3.ebuild,v 1.5 2004/06/30 02:32:13 mr_bones_ Exp $
inherit games
DESCRIPTION="A linux port of the Dungeon game once distributed by DECUS"
HOMEPAGE="http://www.ibiblio.org/linsearch/lsms/dungeon-3.2.3.html"
SRC_URI="ftp://ftp.ibiblio.org/pub/Linux/games/textrpg/${P}.src.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="virtual/libc"
DEPEND="${RDEPEND}
dev-lang/f2c
>=sys-apps/sed-4"
S="${WORKDIR}/dungn32c"
DATS="${GAMES_DATADIR}/${PN}"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e "s:-O:${CFLAGS}:g" Makefile \
|| die "sed Makefile failed"
}
src_compile() {
make game.c || die "make game.c failed"
sed -i \
-re "s:d(indx|text).dat:${DATS}/&:g" \
-e "s:ofnmlen = [^;]+:&+${#DATS}+1:g" \
game.c || die "sed game.c failed"
emake || die "emake failed"
}
src_install() {
dogamesbin dungeon || die "dogamesbin failed"
insinto "${DATS}"
doins dindx.dat dtext.dat
doman "${FILESDIR}/dungeon.6"
dodoc README *.txt *.doc
prepgamesdirs
}
|