blob: 0279021d39dcc31cc6e228713f9e71df1bf273f5 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/egoboo/egoboo-2.7.4.ebuild,v 1.1 2010/02/20 22:35:15 tupone Exp $
EAPI=2
inherit eutils games
DESCRIPTION="A 3d dungeon crawling adventure in the spirit of NetHack"
HOMEPAGE="http://egoboo.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
RDEPEND="virtual/opengl
virtual/glu
media-libs/sdl-image
media-libs/sdl-mixer
media-libs/sdl-ttf"
DEPEND="${RDEPEND}"
src_prepare() {
edos2unix game/Makefile.unix
epatch "${FILESDIR}"/${P}-enet.patch
sed -i \
-e "s:\${EGOBOO_PREFIX}/share:${GAMES_DATADIR}:" \
-e "s:\${EGOBOO_PREFIX}/libexec:$(games_get_libdir):" \
game/egoboo.sh || die "sed failed"
}
src_compile() {
emake -C game -f Makefile.unix
}
src_install() {
dodoc Changelog.txt doc/* || die "dodoc failed"
exeinto "$(games_get_libdir)"
doexe game/${PN} || die "doexe failed"
insinto "${GAMES_DATADIR}/${PN}"
doins -r basicdat modules players controls.txt setup.txt \
|| die "doins failed"
newgamesbin game/egoboo.sh ${PN} || die "newgamesbin failed"
newicon basicdat/icon.bmp ${PN}.bmp
make_desktop_entry ${PN} Egoboo /usr/share/pixmaps/${PN}.bmp
prepgamesdirs
}
|