public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/files/, games-action/armagetronad/
@ 2021-05-02 19:32 Sergei Trofimovich
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Trofimovich @ 2021-05-02 19:32 UTC (permalink / raw
  To: gentoo-commits

commit:     df09de6882ee27954b1ec0da8291f8e2972afce6
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun May  2 19:32:18 2021 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun May  2 19:32:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df09de68

games-action/armagetronad: bump up to 0.2.9.1.0

Fix-by: Alan Swanson
Closes: https://bugs.gentoo.org/764983
Closes: https://bugs.gentoo.org/739070
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 games-action/armagetronad/Manifest                 |  1 +
 .../armagetronad/armagetronad-0.2.9.1.0.ebuild     | 63 ++++++++++++++++++++++
 .../files/armagetronad-0.2.9.1.0-AR.patch          | 10 ++++
 3 files changed, 74 insertions(+)

diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest
index d162f158f53..f5e1a88d326 100644
--- a/games-action/armagetronad/Manifest
+++ b/games-action/armagetronad/Manifest
@@ -1 +1,2 @@
 DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 BLAKE2B 60a8fffe61903cb1fa4b188ae6c72ad842e5395b8a37276a6b84018e5393e1294e6ef5438fc7e029d02bfd7172eb81973781e7fbb670c3c7fbacae46d19de409 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f
+DIST armagetronad-0.2.9.1.0.tbz 1943758 BLAKE2B ed4ecef19125d69faf402829b88288124dd364eafc836be3848727c2bfbd87ca29e18b48448dc868fb995947b2daae150c3b9f5dcf048d0d90d442f5bcf425f0 SHA512 8c2b9cba7d480dec6d7d60984327a5d45c8c87b968fb81a1e192973e6826ddb66c8d41ca82bb04d80da5c6fa2152d19dd890957dabc6cc5ce2d4dffbc45d1f65

diff --git a/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
new file mode 100644
index 00000000000..53ba592280d
--- /dev/null
+++ b/games-action/armagetronad/armagetronad-0.2.9.1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools desktop xdg-utils
+
+DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
+HOMEPAGE="http://armagetronad.org/"
+SRC_URI="https://launchpad.net/armagetronad/$(ver_cut 1-3)/${PV}/+download/armagetronad-${PV}.tbz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dedicated sound"
+
+RDEPEND="
+	dev-libs/libxml2
+	!dedicated? (
+		media-libs/libpng:0=
+		media-libs/libsdl[X,opengl,video,sound?]
+		media-libs/sdl-image[jpeg,png]
+		virtual/glu
+		virtual/opengl
+		sound? ( media-libs/sdl-mixer )
+	)"
+DEPEND=${RDEPEND}
+
+PATCHES=("${FILESDIR}"/${P}-AR.patch)
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+
+src_configure() {
+	# --enable-games just messes up paths
+	econf \
+		$(use_enable dedicated) \
+		$(use_enable sound music) \
+		--disable-sysinstall \
+		--disable-useradd \
+		--disable-uninstall \
+		--disable-games
+}
+
+src_install() {
+	default
+
+	# misplaced desktop-file/icons
+	rm -r "${ED}"/usr/share/${PN}/desktop || die
+	doicon -s 48 desktop/icons/48x48/armagetronad.png
+	make_desktop_entry ${PN}
+}
+
+pkg_postinst() {
+	xdg_icon_cache_update
+}
+
+pkg_postrm() {
+	xdg_icon_cache_update
+}

diff --git a/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch b/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch
new file mode 100644
index 00000000000..5f48ded3f7d
--- /dev/null
+++ b/games-action/armagetronad/files/armagetronad-0.2.9.1.0-AR.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,6 +28,7 @@ dnl those two are apparently included in AC_CANONICAL_TARGET
+ dnl AC_CANONICAL_BUILD
+ dnl AC_CANONICAL_HOST
+ 
++AM_PROG_AR
+ AC_PROG_RANLIB
+ AM_INIT_AUTOMAKE([subdir-objects tar-ustar])
+ 


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/files/, games-action/armagetronad/
@ 2021-06-14 15:49 Ionen Wolkens
  0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2021-06-14 15:49 UTC (permalink / raw
  To: gentoo-commits

commit:     82cb210e542c7705ad58e62b4d0d3dece70fc783
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 14 14:30:43 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Mon Jun 14 15:47:50 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82cb210e

games-action/armagetronad: drop 0.2.8.3.3-r1

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 games-action/armagetronad/Manifest                 |   1 -
 .../armagetronad/armagetronad-0.2.8.3.3-r1.ebuild  |  66 ------
 .../files/armagetronad-0.2.8.3.3-gcc6.patch        | 222 ---------------------
 3 files changed, 289 deletions(-)

diff --git a/games-action/armagetronad/Manifest b/games-action/armagetronad/Manifest
index f5e1a88d326..7555c86c96e 100644
--- a/games-action/armagetronad/Manifest
+++ b/games-action/armagetronad/Manifest
@@ -1,2 +1 @@
-DIST armagetronad-0.2.8.3.3.src.tar.bz2 1857868 BLAKE2B 60a8fffe61903cb1fa4b188ae6c72ad842e5395b8a37276a6b84018e5393e1294e6ef5438fc7e029d02bfd7172eb81973781e7fbb670c3c7fbacae46d19de409 SHA512 05dd7db10efdac0e681133d07384b0e3c2edea328433f1d906e36b5f70960bf502df8d496967981b6bd67e1a119af9a5bbd71b0c824f790921deb3165165dc3f
 DIST armagetronad-0.2.9.1.0.tbz 1943758 BLAKE2B ed4ecef19125d69faf402829b88288124dd364eafc836be3848727c2bfbd87ca29e18b48448dc868fb995947b2daae150c3b9f5dcf048d0d90d442f5bcf425f0 SHA512 8c2b9cba7d480dec6d7d60984327a5d45c8c87b968fb81a1e192973e6826ddb66c8d41ca82bb04d80da5c6fa2152d19dd890957dabc6cc5ce2d4dffbc45d1f65

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
deleted file mode 100644
index 8c28621c0f8..00000000000
--- a/games-action/armagetronad/armagetronad-0.2.8.3.3-r1.ebuild
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit desktop gnome2-utils
-
-DESCRIPTION="Fast-paced 3D lightcycle game based on Tron"
-HOMEPAGE="http://armagetronad.org/"
-SRC_URI="https://launchpad.net/armagetronad/${PV:0:5}/${PV:0:7}.x/+download/armagetronad-${PV}.src.tar.bz2"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dedicated sound"
-
-RDEPEND="
-	dev-libs/libxml2
-	!dedicated? (
-		media-libs/libpng:0=
-		media-libs/libsdl[X,opengl,video,sound?]
-		media-libs/sdl-image[jpeg,png]
-		virtual/glu
-		virtual/opengl
-		sound? ( media-libs/sdl-mixer )
-	)"
-DEPEND=${RDEPEND}
-
-PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
-
-src_prepare() {
-	default
-	sed -i -e 's#aa_docdir=.*$#aa_docdir=${docdir}#' configure || die
-}
-
-src_configure() {
-	# --enable-games just messes up paths
-	econf \
-		$(use_enable dedicated) \
-		$(use_enable sound music) \
-		--disable-sysinstall \
-		--disable-useradd \
-		--disable-uninstall \
-		--disable-games
-}
-
-src_install() {
-	default
-
-	# misplaced desktop-file/icons
-	rm -r "${ED%/}"/usr/share/${PN}/desktop || die
-	doicon -s 48 desktop/icons/large/armagetronad.png
-	make_desktop_entry ${PN}
-}
-
-pkg_preinst() {
-	gnome2_icon_savelist
-}
-
-pkg_postinst() {
-	gnome2_icon_cache_update
-}
-
-pkg_postrm() {
-	gnome2_icon_cache_update
-}

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
deleted file mode 100644
index 0cd6e5bc1d6..00000000000
--- a/games-action/armagetronad/files/armagetronad-0.2.8.3.3-gcc6.patch
+++ /dev/null
@@ -1,222 +0,0 @@
-Bug: https://bugs.gentoo.org/show_bug.cgi?id=617768
-Commit: https://sourceforge.net/p/armagetronad/code/10845/
-
---- a/src/engine/eNetGameObject.cpp
-+++ b/src/engine/eNetGameObject.cpp
-@@ -85,7 +85,7 @@
- eNetGameObject::eNetGameObject(eGrid *grid, const eCoord &pos,const eCoord &dir,
-                                ePlayerNetID* p,bool autodelete)
-         :eGameObject(grid, pos,dir,NULL,autodelete),
--nNetObject(p->Owner()),player(p){
-+         nNetObject(Owner(p)),player(p){
-     lastClientsideAction=0;
-     if (sn_GetNetState()!=nCLIENT)
-         RequestSync();
-@@ -205,7 +205,7 @@
- 
- void eNetGameObject::SetPlayer(ePlayerNetID* a_player)
- {
--    tASSERT( !a_player || Owner() == player->Owner() );
-+    tASSERT( !a_player || Owner() == Owner(player) );
-     player  = a_player;
-     if ( laggometerSmooth == 0 && sn_GetNetState() != nCLIENT )
-         laggometerSmooth = laggometer = se_GetPing( player );
---- a/src/engine/ePlayer.cpp
-+++ b/src/engine/ePlayer.cpp
-@@ -56,6 +56,7 @@
- #include "nConfig.h"
- #include "nNetwork.h"
- #include <time.h>
-+#include <climits>
- 
- int se_lastSaidMaxEntries = 8;
- 
-@@ -1689,9 +1690,9 @@
-         // foo (Red Team) --> Blue Team: some message here
-         eTeam *senderTeam = sender->CurrentTeam();
-         console << tColoredString::ColorString(1,1,.5) << " (";
--        console << *senderTeam;
-+        console << senderTeam;
-         console << tColoredString::ColorString(1,1,.5) << ") --> ";
--        console << *team;
-+        console << team;
-     }
- 
-     console << tColoredString::ColorString(1,1,.5) << ": ";
-@@ -1923,7 +1924,7 @@
-         else {
-             eTeam *senderTeam = sender->CurrentTeam();
-             say << tColoredString::ColorString(1,1,.5) << " (";
--            say << *team;
-+            say << team;
-             say << tColoredString::ColorString(1,1,.5) << " ) --> ";
-             say << senderTeam;
-         }
-@@ -3941,7 +3942,7 @@
-     sg_ClampPingCharity( ::pingCharity );
- }
- 
--static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
-+static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
- 
- static nSpamProtectionSettings se_chatSpamSettings( 1.0f, "SPAM_PROTECTION_CHAT", tOutput("$spam_protection") );
- 
---- a/src/engine/eTeam.cpp
-+++ b/src/engine/eTeam.cpp
-@@ -31,20 +31,21 @@
- #include "nConfig.h"
- 
- #include <set>
-+#include <climits>
- 
--tString & operator << ( tString &s, const eTeam & team)
-+tString & operator << ( tString &s, const eTeam * team)
- {
--    if ( !(&team) )
-+    if ( !team )
-         return s << tOutput("$player_spectator_message");
-     else
--        return s << team.GetColoredName();
-+        return s << team->GetColoredName();
- }
--std::ostream & operator << ( std::ostream &s, const eTeam & team)
-+std::ostream & operator << ( std::ostream &s, const eTeam * team)
- {
--    if ( !(&team) )
-+    if ( !team )
-         return s << tOutput("$player_spectator_message");
-     else
--        return s << team.GetColoredName();
-+        return s << team->GetColoredName();
- }
- 
- #define TEAMCOLORS 8
-@@ -75,7 +76,7 @@
- // static tList<eTeam> se_ColoredTeams;
- static eTeam * se_ColoredTeams[TEAMCOLORS]={0,0,0,0,0,0,0,0};
- 
--static int IMPOSSIBLY_LOW_SCORE=(-1 << 31);
-+static int IMPOSSIBLY_LOW_SCORE=INT_MIN;
- 
- // class that creates config items for one team
- // TEAM_(NAME|RED|GREEN|BLUE)_X
---- a/src/engine/eTeam.h
-+++ b/src/engine/eTeam.h
-@@ -32,8 +32,8 @@
- #include "nNetObject.h"
- #include "tList.h"
- 
--tString & operator << ( tString&, const eTeam&);
--std::ostream & operator << ( std::ostream&, const eTeam&);
-+tString & operator << ( tString&, const eTeam*);
-+std::ostream & operator << ( std::ostream&, const eTeam*);
- 
- template<class T> class nConfItem;
- 
---- a/src/network/nNetObject.h
-+++ b/src/network/nNetObject.h
-@@ -128,7 +128,16 @@
- 
-     virtual void Dump( tConsole& con ); // dumps object stats
- 
-+    static unsigned short ID(nNetObject const *pThis)
-+    {
-+        if (pThis)
-+            return pThis->id;
-+        else
-+            return 0;
-+    }
-+
-     unsigned short ID() const{
-+        tASSERT(this);
-         if (this)
-             return id;
-         else
-@@ -135,7 +144,16 @@
-             return 0;
-     }
- 
-+    static unsigned short Owner(nNetObject const *pThis)
-+    {
-+        if (pThis)
-+            return pThis->owner;
-+        else
-+            return ::sn_myNetID;
-+    }
-+
-     unsigned short Owner() const{
-+        tASSERT(this);
-         if (this)
-             return owner;
-         else
---- a/src/tools/tLocale.cpp
-+++ b/src/tools/tLocale.cpp
-@@ -731,6 +731,13 @@
- 
- // and a special implementation for the locales and strings:
- tOutput& operator << (tOutput &o, const char *locale){
-+    return o.AddString(locale);
-+}
-+
-+tOutput & tOutput::AddString(char const * locale)
-+{
-+    tOutput & o = *this;
-+
-     int len = strlen(locale);
-     if (len == 0)
-         return o;
---- a/src/tools/tLocale.h
-+++ b/src/tools/tLocale.h
-@@ -81,7 +81,7 @@
- 
-     tOutputItemBase *anchor;
- 
--    tOutput& operator << (const tOutput &o);
-+    // tOutput& operator << (const tOutput &o);
- public:
-     tOutput();
-     ~tOutput();
-@@ -91,6 +91,7 @@
-     void AddLiteral(const char *);       // adds a language independent string
-     void AddLocale(const char *);        // adds a language dependant string
-     void AddSpace();                     // adds a simple space
-+    tOutput & AddString(char const * pString); // checks the string, delegates to correct Add...()-Function
- 
-     // set a template parameter at this position of the output string
-     tOutput & SetTemplateParameter(int num, const char *parameter);
-@@ -113,7 +114,7 @@
- 
-         SetTemplateParameter(1, template1);
- 
--        *this << identifier;
-+        AddString(identifier);
-     }
- 
-     template< class T1, class T2 >
-@@ -125,7 +126,7 @@
-         SetTemplateParameter(1, template1);
-         SetTemplateParameter(2, template2);
- 
--        *this << identifier;
-+        AddString(identifier);
-     }
- 
-     template< class T1, class T2, class T3 >
-@@ -138,7 +139,7 @@
-         SetTemplateParameter(2, template2);
-         SetTemplateParameter(3, template3);
- 
--        *this << identifier;
-+        AddString(identifier);
-     }
- 
-     template< class T1, class T2, class T3, class T4 >
-@@ -152,7 +153,7 @@
-         SetTemplateParameter(3, template3);
-         SetTemplateParameter(4, template4);
- 
--        *this << identifier;
-+        AddString(identifier);
-     }
- 
-     tOutput(const tOutput &o); // copy constructor


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-14 15:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-14 15:49 [gentoo-commits] repo/gentoo:master commit in: games-action/armagetronad/files/, games-action/armagetronad/ Ionen Wolkens
  -- strict thread matches above, loose matches on Subject: below --
2021-05-02 19:32 Sergei Trofimovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox