Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/lbreakout2: lbreakout2-2.6.4.ebuild ChangeLog lbreakout2-2.6.2.ebuild
Date: Thu, 31 Jan 2013 17:40:27
Message-Id: 20130131174023.2451D2171E@flycatcher.gentoo.org
1 mr_bones_ 13/01/31 17:40:23
2
3 Modified: ChangeLog
4 Added: lbreakout2-2.6.4.ebuild
5 Removed: lbreakout2-2.6.2.ebuild
6 Log:
7 version bump (bug #452246); clean old
8
9 (Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)
10
11 Revision Changes Path
12 1.36 games-arcade/lbreakout2/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/lbreakout2/ChangeLog?rev=1.36&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/lbreakout2/ChangeLog?rev=1.36&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/lbreakout2/ChangeLog?r1=1.35&r2=1.36
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v
21 retrieving revision 1.35
22 retrieving revision 1.36
23 diff -u -r1.35 -r1.36
24 --- ChangeLog 16 Sep 2011 22:34:43 -0000 1.35
25 +++ ChangeLog 31 Jan 2013 17:40:22 -0000 1.36
26 @@ -1,6 +1,14 @@
27 # ChangeLog for games-arcade/lbreakout2
28 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.35 2011/09/16 22:34:43 mr_bones_ Exp $
30 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/ChangeLog,v 1.36 2013/01/31 17:40:22 mr_bones_ Exp $
32 +
33 +*lbreakout2-2.6.4 (31 Jan 2013)
34 +
35 + 31 Jan 2013; Michael Sterrett <mr_bones_@g.o>
36 + +files/lbreakout2-2.6.4-gentoo.patch, +lbreakout2-2.6.4.ebuild,
37 + -files/lbreakout2-2.6.2-gentoo.patch, -lbreakout2-2.6.2.ebuild,
38 + files/lbreakout2-2.6.3-gentoo.patch:
39 + version bump (bug #452246); clean old
40
41 16 Sep 2011; Michael Sterrett <mr_bones_@g.o> lbreakout2-2.6.3.ebuild:
42 bump the levelset version (bug #383261)
43
44
45
46 1.1 games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild
47
48 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild?rev=1.1&content-type=text/plain
50
51 Index: lbreakout2-2.6.4.ebuild
52 ===================================================================
53 # Copyright 1999-2013 Gentoo Foundation
54 # Distributed under the terms of the GNU General Public License v2
55 # $Header: /var/cvsroot/gentoo-x86/games-arcade/lbreakout2/lbreakout2-2.6.4.ebuild,v 1.1 2013/01/31 17:40:22 mr_bones_ Exp $
56
57 EAPI=5
58 inherit autotools eutils flag-o-matic gnome2-utils games
59
60 levels_V=20120815
61 themes_V=20111026
62
63 DESCRIPTION="Breakout clone written with the SDL library"
64 HOMEPAGE="http://lgames.sourceforge.net/index.php?project=LBreakout2"
65 SRC_URI=" mirror://sourceforge/lgames/${P}.tar.gz
66 mirror://sourceforge/lgames/${PN}-levelsets-${levels_V}.tar.gz
67 themes? ( mirror://sourceforge/lgames/${PN}-themes-${themes_V}.tar.gz )"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
72 IUSE="nls themes"
73
74 RDEPEND="media-libs/libpng:0
75 sys-libs/zlib
76 media-libs/libsdl[audio,joystick,video]
77 media-libs/sdl-net
78 media-libs/sdl-mixer
79 nls? ( virtual/libintl )"
80 DEPEND="${RDEPEND}
81 nls? ( sys-devel/gettext )"
82
83 src_unpack() {
84 unpack ${P}.tar.gz
85
86 cd "${S}/client/levels"
87 unpack ${PN}-levelsets-${levels_V}.tar.gz
88
89 if use themes ; then
90 mkdir "${WORKDIR}/themes"
91 cd "${WORKDIR}/themes"
92 unpack ${PN}-themes-${themes_V}.tar.gz
93
94 # Delete a few duplicate themes (already shipped with lbreakout2
95 # tarball). Some of them have different case than built-in themes, so it
96 # is harder to just compare if the filename is the same.
97 rm -f absoluteB.zip oz.zip moiree.zip
98 for f in *.zip; do
99 unzip -q "$f" && rm -f "$f" || die
100 done
101 fi
102 }
103
104 src_prepare() {
105 epatch "${FILESDIR}"/${P}-gentoo.patch
106 eautoreconf
107 }
108
109 src_configure() {
110 filter-flags -O?
111 egamesconf \
112 --enable-sdl-net \
113 --localedir=/usr/share/locale \
114 --with-docdir="/usr/share/doc/${PF}/html" \
115 $(use_enable nls)
116 }
117
118 src_install() {
119 default
120
121 if use themes ; then
122 insinto "${GAMES_DATADIR}/lbreakout2/gfx"
123 doins -r "${WORKDIR}/themes/"*
124 fi
125
126 newicon client/gfx/win_icon.png ${PN}.png
127 newicon -s 32 client/gfx/win_icon.png ${PN}.png
128 make_desktop_entry lbreakout2 LBreakout2
129
130 prepgamesdirs
131 }
132
133 pkg_preinst() {
134 games_pkg_preinst
135 gnome2_icon_savelist
136 }
137
138 pkg_postinst() {
139 games_pkg_postinst
140 gnome2_icon_cache_update
141 }
142
143 pkg_postrm() {
144 gnome2_icon_cache_update
145 }