blob: 844ad55b515569e7911a57323f8c3ab1f428c10b (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-action/raptor2/raptor2-1.0.0.ebuild,v 1.1 2003/09/10 19:29:16 vapier Exp $
inherit eutils games
MY_P="raptor-${PV}"
DESCRIPTION="space shoot-em-up game"
SRC_URI="mirror://sourceforge/raptorv2/${MY_P}.tar.gz"
HOMEPAGE="http://raptorv2.sourceforge.net/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE="oggvorbis nls"
DEPEND=">=sys-apps/sed-4"
RDEPEND=">=media-libs/allegro-4.0.0
=media-libs/dumb-0.9.1"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A} && cd ${S}
epatch ${FILESDIR}/${PV}-chdir.patch
sed -i \
-e "s:GENTOO_DATADIR:${GAMES_DATADIR}/${PN}/:" \
src/raptor.cpp || die "sed src/raptor.cpp failed"
}
src_compile() {
egamesconf || die "Configuration failed"
emake || die "Compilation failed"
}
src_install() {
dogamesbin src/raptor
insinto ${GAMES_DATADIR}/${PN}/data
doins data/*
dodoc AUTHORS ChangeLog README NEWS
prepgamesdirs
}
|