/[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.1 - (hide annotations) (download)
Tue Aug 7 22:19:15 2012 UTC (8 years ago) by hasufell
Branch: MAIN
re-add wrt #428784

(Portage version: 2.2.0_alpha120/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     # $Header: $
4    
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     KEYWORDS="~amd64 ~x86"
18     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