/[gentoo-x86]/games-rpg/tmw/tmw-20120727.ebuild
Gentoo

Contents of /games-rpg/tmw/tmw-20120727.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Wed Oct 17 03:55:13 2012 UTC (7 years, 9 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #435882

(Portage version: 2.1.11.9/cvs/Linux i686)

1 hasufell 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 phajdan.jr 1.3 # $Header: /var/cvsroot/gentoo-x86/games-rpg/tmw/tmw-20120727.ebuild,v 1.2 2012/09/28 12:36:35 ago Exp $
4 hasufell 1.1
5     EAPI=4
6     inherit eutils gnome2-utils games
7    
8     MY_PN=${PN}-branding
9     MY_P=${MY_PN}-${PV}
10    
11     DESCRIPTION="Branding for the Mana client for server.themanaworld.org"
12     HOMEPAGE="http://themanaworld.org/"
13     SRC_URI="mirror://sourceforge/themanaworld/${MY_P}.tar.gz"
14    
15     LICENSE="GPL-2"
16     SLOT="0"
17 phajdan.jr 1.3 KEYWORDS="amd64 x86"
18 hasufell 1.1 IUSE=""
19    
20     RDEPEND="games-rpg/mana"
21    
22     S=${WORKDIR}/${MY_P}
23    
24     src_prepare() {
25     epatch "${FILESDIR}"/${MY_PN}-gentoo.patch
26    
27     sed -i \
28     -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
29     ${PN} ${PN}.desktop \
30     || die "sed failed"
31     }
32    
33     src_install() {
34     dogamesbin ${PN}
35    
36     insinto "${GAMES_DATADIR}/${PN}/"
37     doins ${PN}.mana
38     doins -r data/
39    
40     domenu ${PN}.desktop
41    
42     doicon -s 32 data/icons/${PN}.xpm
43     doicon data/icons/${PN}.png
44    
45     prepgamesdirs
46     }
47    
48     pkg_preinst() {
49     games_pkg_preinst
50     gnome2_icon_savelist
51     }
52    
53     pkg_postinst() {
54     games_pkg_postinst
55     gnome2_icon_cache_update
56     }
57    
58     pkg_postrm() {
59     gnome2_icon_cache_update
60     }

  ViewVC Help
Powered by ViewVC 1.1.20