blob: 1545949c1813b44bbcc88a54a14b75fb328dd4ae (
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
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/0verkill/0verkill-0.16-r2.ebuild,v 1.6 2004/06/24 21:51:22 agriffis Exp $
inherit eutils games
DESCRIPTION="A bloody 2D action deathmatch-like game in ASCII-ART"
HOMEPAGE="http://artax.karlin.mff.cuni.cz/~brain/0verkill/"
SRC_URI="http://artax.karlin.mff.cuni.cz/~brain/0verkill/release/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc amd64"
IUSE="X"
RDEPEND="X? ( virtual/x11 )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PV}-docs.patch
epatch ${FILESDIR}/${PV}-home-overflow.patch
epatch ${FILESDIR}/${PV}-gentoo-paths.patch
sed -i \
-e "s:data/:${GAMES_DATADIR}/${PN}/data/:" cfg.h \
|| die "sed failed"
}
src_compile() {
egamesconf $(use_with X x) || die
emake || die "emake failed"
}
src_install() {
dogamesbin 0verkill
newgamesbin avi 0verkill-avi
newgamesbin editor 0verkill-editor
if use X ; then
dogamesbin x0verkill
newgamesbin xavi x0verkill-avi
newgamesbin xeditor x0verkill-editor
fi
newgamesbin bot 0verkill-bot
newgamesbin server 0verkill-server
newgamesbin test_server 0verkill-test_server
insinto ${GAMES_DATADIR}/${PN}/data
doins data/*
insinto ${GAMES_DATADIR}/${PN}/grx
doins grx/*
dohtml doc/*.htm
rm doc/*.html doc/README.OS2 doc/Readme\ Win32.txt doc/COPYING
dodoc doc/*
prepgamesdirs
}
|