/[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.2 - (hide annotations) (download)
Fri Sep 28 12:36:35 2012 UTC (7 years, 10 months ago) by ago
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable for amd64, wrt bug #435882

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 hasufell 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.2 # $Header: /var/cvsroot/gentoo-x86/games-rpg/tmw/tmw-20120727.ebuild,v 1.1 2012/08/07 22:19:15 hasufell 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 ago 1.2 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