Gentoo Archives: gentoo-commits

From: "Tristan Heaven (nyhm)" <nyhm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/moleinvasion: metadata.xml ChangeLog moleinvasion-0.4.ebuild
Date: Fri, 31 Jul 2009 12:30:24
Message-Id: E1MWrFe-0003m7-5W@stork.gentoo.org
1 nyhm 09/07/31 12:30:22
2
3 Added: metadata.xml ChangeLog moleinvasion-0.4.ebuild
4 Log:
5 Initial commit
6 (Portage version: 2.2_rc33/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 games-arcade/moleinvasion/metadata.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/metadata.xml?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/metadata.xml?rev=1.1&content-type=text/plain
13
14 Index: metadata.xml
15 ===================================================================
16 <?xml version="1.0" encoding="UTF-8"?>
17 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
18 <pkgmetadata>
19 <herd>games</herd>
20 <use>
21 <flag name="music">Download and install the music files</flag>
22 </use>
23 </pkgmetadata>
24
25
26
27 1.1 games-arcade/moleinvasion/ChangeLog
28
29 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/ChangeLog?rev=1.1&view=markup
30 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/ChangeLog?rev=1.1&content-type=text/plain
31
32 Index: ChangeLog
33 ===================================================================
34 # ChangeLog for games-arcade/moleinvasion
35 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
36 # $Header: /var/cvsroot/gentoo-x86/games-arcade/moleinvasion/ChangeLog,v 1.1 2009/07/31 12:30:22 nyhm Exp $
37
38 *moleinvasion-0.4 (31 Jul 2009)
39
40 31 Jul 2009; Tristan Heaven <nyhm@g.o> +moleinvasion-0.4.ebuild,
41 +metadata.xml:
42 Initial commit
43
44
45
46
47 1.1 games-arcade/moleinvasion/moleinvasion-0.4.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/moleinvasion-0.4.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/moleinvasion/moleinvasion-0.4.ebuild?rev=1.1&content-type=text/plain
51
52 Index: moleinvasion-0.4.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/games-arcade/moleinvasion/moleinvasion-0.4.ebuild,v 1.1 2009/07/31 12:30:22 nyhm Exp $
57
58 EAPI=2
59 inherit eutils games
60
61 DESCRIPTION="Mole infested 2D platform game"
62 HOMEPAGE="http://moleinvasion.tuxfamily.org/"
63 SRC_URI="ftp://download.tuxfamily.org/minvasion/packages/MoleInvasion-${PV}.tar.bz2
64 music? ( mirror://gentoo/${PN}-music-20090731.tar.gz )"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="music"
70
71 DEPEND="media-libs/libsdl
72 media-libs/sdl-image[jpeg,png]
73 media-libs/sdl-mixer[vorbis]
74 media-libs/sdl-ttf"
75
76 S=${WORKDIR}/${P}/src
77
78 src_prepare() {
79 use music && mv -f "${WORKDIR}"/music ../
80 sed -i \
81 -e '/^CFLAGS/s:= -g:+=:' \
82 -e '/^LDFLAGS/d' \
83 -e "/^FINALEXEDIR/s:/usr.*:${GAMES_BINDIR}:" \
84 -e "/^FINALDATADIR/s:/usr.*:${GAMES_DATADIR}/${PN}:" \
85 Makefile \
86 || die "sed failed"
87 }
88
89 src_install() {
90 emake DESTDIR="${D}" install install-data || die "emake install failed"
91 newicon ../gfx/icon.xpm ${PN}.xpm
92 make_desktop_entry ${PN} "Mole Invasion"
93 doman ../debian/*.6
94 prepgamesdirs
95 }