blob: 7822120e9f4acee1f03a3ce6e29209edbeb258e9 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# 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.3 2004/02/29 09:19:45 vapier Exp $
inherit games eutils
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? ( x11-base/xfree )"
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 "s:data/:${GAMES_DATADIR}/${PN}/data/:" cfg.h
}
src_compile() {
egamesconf `use_with X x` || die
emake || die
}
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
}
|