blob: 445694e9a460df41b20ecbfc334f89e34320365b (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/candycrisis/candycrisis-1.0-r1.ebuild,v 1.3 2009/07/28 15:18:29 nyhm Exp $
inherit eutils games
DESCRIPTION="An exciting combination of pure action and puzzle gaming"
HOMEPAGE="http://candycrisis.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RDEPEND="=media-libs/fmod-3*
media-libs/libsdl
media-libs/sdl-image"
DEPEND="${RDEPEND}
app-arch/unzip"
S=${WORKDIR}/CandyCrisis/Source
src_unpack() {
unpack ${A}
cd "${S}"
epatch \
"${FILESDIR}"/${P}-gentoo.patch \
"${FILESDIR}"/${P}-gcc44.patch
sed -i \
-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}/:g" \
main.cpp \
|| die "sed failed"
}
src_install() {
dogamesbin ${PN} || die "dogamesbin failed"
insinto "${GAMES_DATADIR}"/${PN}
doins ../CandyCrisisResources/* || die "doins failed"
newicon ../CandyCrisisResources/PICT_10000.png ${PN}.png
make_desktop_entry ${PN} CandyCrisis
dodoc ../CandyCrisisReadMe.rtf
prepgamesdirs
}
|