summaryrefslogtreecommitdiff
blob: 2c1ef3f80c0a06bee08b8611c08dba11d742a16f (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-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/tmw/tmw-20110911.ebuild,v 1.1 2011/12/03 18:38:16 tupone Exp $

EAPI=2
inherit eutils games

MY_PN=${PN}-branding
MY_P=${MY_PN}-${PV}

DESCRIPTION="Branding for the Mana client for server.themanaworld.org"
HOMEPAGE="http://themanaworld.org/"
SRC_URI="mirror://sourceforge/themanaworld/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="games-rpg/mana"
DEPEND=""

S="${WORKDIR}"/${MY_P}
PATCHES=( "${FILESDIR}"/${MY_PN}-gentoo.patch )

src_prepare() {
	base_src_prepare
	sed -i \
		-e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
		tmw tmw.desktop \
		|| die "sed failed"
}

src_install() {
	doicon data/icons/tmw.xpm
	insinto /usr/share/icons
	doins data/icons/tmw.png
	dogamesbin tmw
	insinto "${GAMES_DATADIR}/${PN}/"
	doins tmw.mana
	doins -r data/
	insinto /usr/share/applications
	doins tmw.desktop
	prepgamesdirs
}