blob: 22400c2216dbb6e6f9a8ecf9101ea2fc270deeac (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/cavezofphear/cavezofphear-0.1.ebuild,v 1.1 2003/11/08 09:57:40 mr_bones_ Exp $
inherit games
S="${WORKDIR}/${P/cavezof/}"
DESCRIPTION="A boulder dash / digger-like game for console using ncurses"
HOMEPAGE="http://www.x86.no/cavezofphear/"
SRC_URI="http://www.x86.no/cavezofphear/${P/cavezof/}.tar.bz2"
KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND="sys-libs/ncurses"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
sed -i \
-e 's/cd src.*/$(MAKE) -C src/' Makefile || \
die "sed Makefile failed"
sed -i \
-e 's/^all:.*/all: phear editor/' \
-e "/^CFLAGS/ s:=.*:= ${CFLAGS}:" src/Makefile || \
die "sed src/Makefile failed"
sed -i \
-e 's/\.\///' \
-e 's/editor/phear-editor/g' README-EDITOR || \
die "sed README-EDITOR failed"
sed -i \
-e "s:\"data/:\"${GAMES_DATADIR}/${PN}/data/:" \
src/{chk.c,main.c,splash.c} || \
die "sed data fix failed"
}
src_install() {
dogamesbin src/phear || die "dogamesbin failed"
newgamesbin src/editor phear-editor || die "newgamesbin failed"
dodir "${GAMES_DATADIR}/${PN}" || die "dodir failed"
cp -r data/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
dodoc AUTHORS ChangeLog README* TODO || die "dodoc failed"
prepgamesdirs
}
|