Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/files/, games-action/armagetronad/
Date: Mon, 14 Jun 2021 15:50:02
Message-Id: 1623685670.82cb210e542c7705ad58e62b4d0d3dece70fc783.ionen@gentoo
1 commit: 82cb210e542c7705ad58e62b4d0d3dece70fc783
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 14:30:43 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 15:47:50 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82cb210e
7
8 games-action/armagetronad: drop 0.2.8.3.3-r1
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-action/armagetronad/Manifest | 1 -
13 .../armagetronad/armagetronad-0.2.8.3.3-r1.ebuild | 66 ------
14 .../files/armagetronad-0.2.8.3.3-gcc6.patch | 222 ---------------------
15 3 files changed, 289 deletions(-)
16
17 diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest
18 index f5e1a88d326..7555c86c96e 100644
19 --- a/games-action/armagetronad/Manifest
20 +++ b/games-action/armagetronad/Manifest
21 @@ -1,2 +1 @@
22 -DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 BLAKE2B 60a8fffe61903cb1fa4b188ae6c72ad842e5395b8a37276a6b84018e5393e1294e6ef5438fc7e029d02bfd7172eb81973781e7fbb670c3c7fbacae46d19de409 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f
23 DIST armagetronad-0.2.9.1.0.tbz 1943758 BLAKE2B ed4ecef19125d69faf402829b88288124dd364eafc836be3848727c2bfbd87ca29e18b48448dc868fb995947b2daae150c3b9f5dcf048d0d90d442f5bcf425f0 SHA512 8c2b9cba7d480dec6d7d60984327a5d45c8c87b968fb81a1e192973e6826ddb66c8d41ca82bb04d80da5c6fa2152d19dd890957dabc6cc5ce2d4dffbc45d1f65
24
25 diff --git a/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild b/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild
26 deleted file mode 100644
27 index 8c28621c0f8..00000000000
28 --- a/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild
29 +++ /dev/null
30 @@ -1,66 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=6
35 -
36 -inherit desktop gnome2-utils
37 -
38 -DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
39 -HOMEPAGE="http://armagetronad.org/"
40 -SRC_URI="https://launchpad.net/armagetronad/${PV:0:5}/${PV:0:7}.x/+download/armagetronad-${PV}.src.tar.bz2"
41 -
42 -LICENSE="GPL-2+"
43 -SLOT="0"
44 -KEYWORDS="~amd64 ~x86"
45 -IUSE="dedicated sound"
46 -
47 -RDEPEND="
48 - dev-libs/libxml2
49 - !dedicated? (
50 - media-libs/libpng:0=
51 - media-libs/libsdl[X,opengl,video,sound?]
52 - media-libs/sdl-image[jpeg,png]
53 - virtual/glu
54 - virtual/opengl
55 - sound? ( media-libs/sdl-mixer )
56 - )"
57 -DEPEND=${RDEPEND}
58 -
59 -PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
60 -
61 -src_prepare() {
62 - default
63 - sed -i -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' configure || die
64 -}
65 -
66 -src_configure() {
67 - # --enable-games just messes up paths
68 - econf \
69 - $(use_enable dedicated) \
70 - $(use_enable sound music) \
71 - --disable-sysinstall \
72 - --disable-useradd \
73 - --disable-uninstall \
74 - --disable-games
75 -}
76 -
77 -src_install() {
78 - default
79 -
80 - # misplaced desktop-file/icons
81 - rm -r "${ED%/}"/usr/share/${PN}/desktop || die
82 - doicon -s 48 desktop/icons/large/armagetronad.png
83 - make_desktop_entry ${PN}
84 -}
85 -
86 -pkg_preinst() {
87 - gnome2_icon_savelist
88 -}
89 -
90 -pkg_postinst() {
91 - gnome2_icon_cache_update
92 -}
93 -
94 -pkg_postrm() {
95 - gnome2_icon_cache_update
96 -}
97
98 diff --git a/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch b/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch
99 deleted file mode 100644
100 index 0cd6e5bc1d6..00000000000
101 --- a/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch
102 +++ /dev/null
103 @@ -1,222 +0,0 @@
104 -Bug: https://bugs.gentoo.org/show_bug.cgi?id=617768
105 -Commit: https://sourceforge.net/p/armagetronad/code/10845/
106 -
107 ---- a/src/engine/eNetGameObject.cpp
108 -+++ b/src/engine/eNetGameObject.cpp
109 -@@ -85,7 +85,7 @@
110 - eNetGameObject::eNetGameObject(eGrid *grid, const eCoord &pos,const eCoord &dir,
111 - ePlayerNetID* p,bool autodelete)
112 - :eGameObject(grid, pos,dir,NULL,autodelete),
113 --nNetObject(p->Owner()),player(p){
114 -+ nNetObject(Owner(p)),player(p){
115 - lastClientsideAction=0;
116 - if (sn_GetNetState()!=nCLIENT)
117 - RequestSync();
118 -@@ -205,7 +205,7 @@
119 -
120 - void eNetGameObject::SetPlayer(ePlayerNetID* a_player)
121 - {
122 -- tASSERT( !a_player || Owner() == player->Owner() );
123 -+ tASSERT( !a_player || Owner() == Owner(player) );
124 - player = a_player;
125 - if ( laggometerSmooth == 0 && sn_GetNetState() != nCLIENT )
126 - laggometerSmooth = laggometer = se_GetPing( player );
127 ---- a/src/engine/ePlayer.cpp
128 -+++ b/src/engine/ePlayer.cpp
129 -@@ -56,6 +56,7 @@
130 - #include "nConfig.h"
131 - #include "nNetwork.h"
132 - #include <time.h>
133 -+#include <climits>
134 -
135 - int se_lastSaidMaxEntries = 8;
136 -
137 -@@ -1689,9 +1690,9 @@
138 - // foo (Red Team) --> Blue Team: some message here
139 - eTeam *senderTeam = sender->CurrentTeam();
140 - console << tColoredString::ColorString(1,1,.5) << " (";
141 -- console << *senderTeam;
142 -+ console << senderTeam;
143 - console << tColoredString::ColorString(1,1,.5) << ") --> ";
144 -- console << *team;
145 -+ console << team;
146 - }
147 -
148 - console << tColoredString::ColorString(1,1,.5) << ": ";
149 -@@ -1923,7 +1924,7 @@
150 - else {
151 - eTeam *senderTeam = sender->CurrentTeam();
152 - say << tColoredString::ColorString(1,1,.5) << " (";
153 -- say << *team;
154 -+ say << team;
155 - say << tColoredString::ColorString(1,1,.5) << " ) --> ";
156 - say << senderTeam;
157 - }
158 -@@ -3941,7 +3942,7 @@
159 - sg_ClampPingCharity( ::pingCharity );
160 - }
161 -
162 --static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
163 -+static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
164 -
165 - static nSpamProtectionSettings se_chatSpamSettings( 1.0f, "SPAM_PROTECTION_CHAT", tOutput("$spam_protection") );
166 -
167 ---- a/src/engine/eTeam.cpp
168 -+++ b/src/engine/eTeam.cpp
169 -@@ -31,20 +31,21 @@
170 - #include "nConfig.h"
171 -
172 - #include <set>
173 -+#include <climits>
174 -
175 --tString & operator << ( tString &s, const eTeam & team)
176 -+tString & operator << ( tString &s, const eTeam * team)
177 - {
178 -- if ( !(&team) )
179 -+ if ( !team )
180 - return s << tOutput("$player_spectator_message");
181 - else
182 -- return s << team.GetColoredName();
183 -+ return s << team->GetColoredName();
184 - }
185 --std::ostream & operator << ( std::ostream &s, const eTeam & team)
186 -+std::ostream & operator << ( std::ostream &s, const eTeam * team)
187 - {
188 -- if ( !(&team) )
189 -+ if ( !team )
190 - return s << tOutput("$player_spectator_message");
191 - else
192 -- return s << team.GetColoredName();
193 -+ return s << team->GetColoredName();
194 - }
195 -
196 - #define TEAMCOLORS 8
197 -@@ -75,7 +76,7 @@
198 - // static tList<eTeam> se_ColoredTeams;
199 - static eTeam * se_ColoredTeams[TEAMCOLORS]={0,0,0,0,0,0,0,0};
200 -
201 --static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
202 -+static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
203 -
204 - // class that creates config items for one team
205 - // TEAM_(NAME|RED|GREEN|BLUE)_X
206 ---- a/src/engine/eTeam.h
207 -+++ b/src/engine/eTeam.h
208 -@@ -32,8 +32,8 @@
209 - #include "nNetObject.h"
210 - #include "tList.h"
211 -
212 --tString & operator << ( tString&, const eTeam&);
213 --std::ostream & operator << ( std::ostream&, const eTeam&);
214 -+tString & operator << ( tString&, const eTeam*);
215 -+std::ostream & operator << ( std::ostream&, const eTeam*);
216 -
217 - template<class T> class nConfItem;
218 -
219 ---- a/src/network/nNetObject.h
220 -+++ b/src/network/nNetObject.h
221 -@@ -128,7 +128,16 @@
222 -
223 - virtual void Dump( tConsole& con ); // dumps object stats
224 -
225 -+ static unsigned short ID(nNetObject const *pThis)
226 -+ {
227 -+ if (pThis)
228 -+ return pThis->id;
229 -+ else
230 -+ return 0;
231 -+ }
232 -+
233 - unsigned short ID() const{
234 -+ tASSERT(this);
235 - if (this)
236 - return id;
237 - else
238 -@@ -135,7 +144,16 @@
239 - return 0;
240 - }
241 -
242 -+ static unsigned short Owner(nNetObject const *pThis)
243 -+ {
244 -+ if (pThis)
245 -+ return pThis->owner;
246 -+ else
247 -+ return ::sn_myNetID;
248 -+ }
249 -+
250 - unsigned short Owner() const{
251 -+ tASSERT(this);
252 - if (this)
253 - return owner;
254 - else
255 ---- a/src/tools/tLocale.cpp
256 -+++ b/src/tools/tLocale.cpp
257 -@@ -731,6 +731,13 @@
258 -
259 - // and a special implementation for the locales and strings:
260 - tOutput& operator << (tOutput &o, const char *locale){
261 -+ return o.AddString(locale);
262 -+}
263 -+
264 -+tOutput & tOutput::AddString(char const * locale)
265 -+{
266 -+ tOutput & o = *this;
267 -+
268 - int len = strlen(locale);
269 - if (len == 0)
270 - return o;
271 ---- a/src/tools/tLocale.h
272 -+++ b/src/tools/tLocale.h
273 -@@ -81,7 +81,7 @@
274 -
275 - tOutputItemBase *anchor;
276 -
277 -- tOutput& operator << (const tOutput &o);
278 -+ // tOutput& operator << (const tOutput &o);
279 - public:
280 - tOutput();
281 - ~tOutput();
282 -@@ -91,6 +91,7 @@
283 - void AddLiteral(const char *); // adds a language independent string
284 - void AddLocale(const char *); // adds a language dependant string
285 - void AddSpace(); // adds a simple space
286 -+ tOutput & AddString(char const * pString); // checks the string, delegates to correct Add...()-Function
287 -
288 - // set a template parameter at this position of the output string
289 - tOutput & SetTemplateParameter(int num, const char *parameter);
290 -@@ -113,7 +114,7 @@
291 -
292 - SetTemplateParameter(1, template1);
293 -
294 -- *this << identifier;
295 -+ AddString(identifier);
296 - }
297 -
298 - template< class T1, class T2 >
299 -@@ -125,7 +126,7 @@
300 - SetTemplateParameter(1, template1);
301 - SetTemplateParameter(2, template2);
302 -
303 -- *this << identifier;
304 -+ AddString(identifier);
305 - }
306 -
307 - template< class T1, class T2, class T3 >
308 -@@ -138,7 +139,7 @@
309 - SetTemplateParameter(2, template2);
310 - SetTemplateParameter(3, template3);
311 -
312 -- *this << identifier;
313 -+ AddString(identifier);
314 - }
315 -
316 - template< class T1, class T2, class T3, class T4 >
317 -@@ -152,7 +153,7 @@
318 - SetTemplateParameter(3, template3);
319 - SetTemplateParameter(4, template4);
320 -
321 -- *this << identifier;
322 -+ AddString(identifier);
323 - }
324 -
325 - tOutput(const tOutput &o); // copy constructor