blob: ec438aa1302b2993fff4813e5780836ff8c9d9c0 (
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
inherit games
S=${WORKDIR}/pacman
DESCRIPTION="a Pacman clone in full 3D with a few surprises. Rockets, bombs and explosions abound."
HOMEPAGE="http://sourceforge.net/projects/pacmanarena/"
SRC_URI="mirror://sourceforge/pacmanarena/pacman-src-${PV}.tar.bz2
mirror://sourceforge/pacmanarena/pacman-data-0.0.zip"
KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
RDEPEND="virtual/x11
virtual/opengl
>=media-libs/sdl-mixer-1.2.4
oggvorbis? ( media-libs/libvorbis )"
DEPEND="${RDEPEND}
>=sys-apps/sed-4"
src_unpack() {
unpack pacman-src-0.01.tar.bz2
cd ${S}
unpack pacman-data-0.0.zip
sed -i \
-e "/FILE_BASE_PATH/ s:\.:${GAMES_DATADIR}/${PN}/:" file.h || \
die "sed file.h failed"
}
src_install() {
newgamesbin pacman pacmanarena
dodir ${GAMES_DATADIR}/${PN}
cp -r gfx/ sfx/ ${D}${GAMES_DATADIR}/${PN}
dodoc README
prepgamesdirs
}
pkg_postins() {
games_pkg_postinst
echo
ewarn "You need oggvorbis in your USE var and sdl components build"
ewarn "with oggvorbis to have sound."
echo
}
|