blob: 7e0eebbda66ec30928617e244f625bd45c3c498f (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-arcade/xkobo/xkobo-1.11.ebuild,v 1.9 2006/01/29 00:38:40 fmccor Exp $
inherit games
MY_P="${P}+w01"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A fastpaced multiway scrolling shoot-em-up"
HOMEPAGE="http://freshmeat.net/projects/xkobo/?topic_id=80"
SRC_URI="http://www.redhead.dk/download/pub/Xkobo/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE=""
RDEPEND="virtual/libc
|| ( x11-libs/libXext virtual/x11 )"
DEPEND="${RDEPEND}
|| ( ( x11-misc/gccmakedep
x11-misc/imake )
virtual/x11 )
>=sys-apps/sed-4"
src_unpack() {
unpack ${A}
cd ${S}
sed -e "s:/usr/local/games/xkobo-scores:${GAMES_STATEDIR}/xkobo-scores:" \
xkobo.man > xkobo.6 \
|| die 'sed xkobo.man failed'
sed -i \
-e "/HSCORE_DIR/ { s:/usr/local/games/xkobo-scores:${GAMES_STATEDIR}/xkobo-scores: }" \
Imakefile \
|| die 'sed Imakefile failed'
xmkmf -a || die "xmkmf failed"
}
src_compile() {
emake \
CXXOPTIONS="${CXXFLAGS}" \
CDEBUGFLAGS="${CFLAGS}" \
xkobo || die "emake failed"
}
src_install() {
dogamesbin xkobo || die "dogamesbin failed"
doman xkobo.6
keepdir "${GAMES_STATEDIR}/xkobo-scores"
prepgamesdirs
fperms 2775 "${GAMES_STATEDIR}/xkobo-scores"
}
|