[gentoo-commits] repo/gentoo:master commit in: games-arcade/slimevolley/, games-arcade/slimevolley/files/

2020-10-15 Thread Sam James
commit: 3ed201ae19a67d7ed4eaf2ba5e94f14d60b7827d
Author: Alexey Sokolov  google  com>
AuthorDate: Fri Oct  9 22:35:20 2020 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Oct 15 20:37:32 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ed201ae

games-arcade/slimevolley: fix build with gcc 10

Closes: https://bugs.gentoo.org/707412
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Alexey Sokolov  asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/17866
Signed-off-by: Sam James  gentoo.org>

 .../files/slimevolley-2.4.2-gcc10.patch| 263 +
 .../slimevolley/slimevolley-2.4.2-r1.ebuild|   4 +-
 2 files changed, 265 insertions(+), 2 deletions(-)

diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-gcc10.patch 
b/games-arcade/slimevolley/files/slimevolley-2.4.2-gcc10.patch
new file mode 100644
index 000..15338a7bfaa
--- /dev/null
+++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-gcc10.patch
@@ -0,0 +1,263 @@
+Author: Reiner Herrmann 
+Description: Fix FTBFS with GCC 10
+Bug-Debian: https://bugs.debian.org/957813
+
+--- a/src/themes.h
 b/src/themes.h
+@@ -41,28 +41,28 @@
+ bool _charge_theme_act(char* theme_select);
+ void _theme_suivant(bool initial);
+ 
+-char nom_theme[32];
+-char theme_act[32];
++extern char nom_theme[32];
++extern char theme_act[32];
+ 
+-int menu_decalage, menu_t_police, menu_ecart;
++extern int menu_decalage, menu_t_police, menu_ecart;
+ 
+-SDL_Color coul_txt_menu, coul_txt_dial, coul_txt_jeu, coul_filet, coul_sol, 
coul_fond;
++extern SDL_Color coul_txt_menu, coul_txt_dial, coul_txt_jeu, coul_filet, 
coul_sol, coul_fond;
+ 
+-SDL_Surface *sol, *filet, *balle_img, *fleche, *oeil, *icone_jg, *icone_jd, 
*icone_fen;
++extern SDL_Surface *sol, *filet, *balle_img, *fleche, *oeil, *icone_jg, 
*icone_jd, *icone_fen;
+ 
+-SDL_Surface **img_grand_jg, **img_grand_jd, **img_2J_jg, **img_2J_jd, 
**img_3J_jg, **img_3J_jd;
+-Uint8 img_max_jg, img_max_jd;
++extern SDL_Surface **img_grand_jg, **img_grand_jd, **img_2J_jg, **img_2J_jd, 
**img_3J_jg, **img_3J_jd;
++extern Uint8 img_max_jg, img_max_jd;
+ 
+-SDL_Surface *fond, *fond_jeu;
++extern SDL_Surface *fond, *fond_jeu;
+ 
+-TTF_Font* police; /* La police de caractères */
+-TTF_Font* police_menu;
++extern TTF_Font* police; /* La police de caractères */
++extern TTF_Font* police_menu;
+ 
+-Uint16 decalage_haut, decalage_gauche;
+-float ratio_police;
++extern Uint16 decalage_haut, decalage_gauche;
++extern float ratio_police;
+ 
+-bool th_libere;
++extern bool th_libere;
+ 
+-char* chemin_moi;
++extern char* chemin_moi;
+ 
+ #endif
+--- a/src/themes_general.c
 b/src/themes_general.c
+@@ -31,6 +31,21 @@
+ #define RATIO_3J .6
+ #define RATIO_IC .4
+ 
++char nom_theme[32];
++char theme_act[32];
++int menu_decalage, menu_t_police, menu_ecart;
++SDL_Color coul_txt_menu, coul_txt_dial, coul_txt_jeu, coul_filet, coul_sol, 
coul_fond;
++SDL_Surface *sol, *filet, *balle_img, *fleche, *oeil, *icone_jg, *icone_jd, 
*icone_fen;
++SDL_Surface **img_grand_jg, **img_grand_jd, **img_2J_jg, **img_2J_jd, 
**img_3J_jg, **img_3J_jd;
++Uint8 img_max_jg, img_max_jd;
++SDL_Surface *fond, *fond_jeu;
++TTF_Font* police; /* La police de caractères */
++TTF_Font* police_menu;
++Uint16 decalage_haut, decalage_gauche;
++float ratio_police;
++bool th_libere;
++char* chemin_moi;
++
+ SDL_Rect filet_rect = { FILET_GAUCHE, HAUT_ECRAN - HAUT_SOL - FILET_HAUT, 0, 
0 };
+ SDL_Rect sol_rect = { 0, HAUT_ECRAN - HAUT_SOL, 0, 0 };
+ SDL_Rect fond_rect;
+--- a/src/slime.c
 b/src/slime.c
+@@ -53,6 +53,20 @@
+   #endif
+ #endif
+ 
++SDL_Event evenement;
++SDL_Surface *ecran; /* L'écran */
++joueur tab_joueurs[NB_JOUEURS_T]; /* Ce tableau contient les configuration 
des joueurs */
++touches_joueur touches[4];
++Uint8 nb_balles;
++balle_obj tab_balles[MAX_BALLES];
++config_slime conf; /* La configuration actuelle (modifiable) */
++Uint8 act_conf;
++Uint32 ev_timer(Uint32 intervalle, void* param);
++Uint16 h_ecran, l_ecran;
++bool quitter;
++bool fen_ok;
++bool plein_ecran, aff_fps, aff_sc_perm;
++
+ char conf_chemin[64] = CONFIG_NOM;
+ 
+ void afficher(char* chaine, TTF_Font* police_texte, SDL_Color coul_texte, 
Uint16 posX, Uint16 posY) {
+--- a/src/slime.h
 b/src/slime.h
+@@ -68,7 +68,7 @@
+   #define snprintf5(a, b, c, d, e) snprintf(a, b, c, d, e)
+ #endif
+ 
+-SDL_Event evenement;
++extern SDL_Event evenement;
+ 
+ void afficher(char* chaine, TTF_Font* police_texte, SDL_Color coul_text, 
Uint16 posX, Uint16 posY);
+ void aff_aide(const char* texte);
+@@ -85,23 +85,23 @@
+ 
+ /* Les variables globales nécessaires... */
+ 
+-SDL_Surface *ecran; /* L'écran */
++extern SDL_Surface *ecran; /* L'écran */
+ 
+-joueur tab_joueurs[NB_JOUEURS_T]; /* Ce tableau contient les configuration 
des joueurs */
+-touches_joueur touches[4];
++extern joueur tab_joueurs[NB_JOUEURS_T]; /* Ce tableau contient les 
configuration des joueurs */
++extern touches_joueur 

[gentoo-commits] repo/gentoo:master commit in: games-arcade/slimevolley/, games-arcade/slimevolley/files/

2018-04-24 Thread Pacho Ramos
commit: 0d7da14089b36aa3f97273b7095ffa43dd5ed8c8
Author: Pacho Ramos  gentoo  org>
AuthorDate: Tue Apr 24 17:56:56 2018 +
Commit: Pacho Ramos  gentoo  org>
CommitDate: Tue Apr 24 19:26:04 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d7da140

games-arcade/slimevolley: Stop using games.eclass

Package-Manager: Portage-2.3.31, Repoman-2.3.9

 .../files/slimevolley-2.4.2-underlink.patch|  4 +-
 .../slimevolley/slimevolley-2.4.2-r1.ebuild| 44 ++
 2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch 
b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch
index 7ca362c7bc6..1aad45f6cf5 100644
--- a/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch
+++ b/games-arcade/slimevolley/files/slimevolley-2.4.2-underlink.patch
@@ -1,5 +1,5 @@
 CMakeLists.txt.old 2011-06-20 20:42:26.545500925 +0200
-+++ CMakeLists.txt 2011-06-20 20:42:34.407999223 +0200
+--- a/CMakeLists.txt.old   2011-06-20 20:42:26.545500925 +0200
 b/CMakeLists.txt   2011-06-20 20:42:34.407999223 +0200
 @@ -42,6 +42,7 @@
${SDL_LIBRARY}
${SDLTTF_LIBRARY}

diff --git a/games-arcade/slimevolley/slimevolley-2.4.2-r1.ebuild 
b/games-arcade/slimevolley/slimevolley-2.4.2-r1.ebuild
new file mode 100644
index 000..e4a8fe67dfa
--- /dev/null
+++ b/games-arcade/slimevolley/slimevolley-2.4.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit cmake-utils
+
+DESCRIPTION="A simple volleyball game"
+HOMEPAGE="http://slime.tuxfamily.org/index.php;
+SRC_URI="http://downloads.tuxfamily.org/slime/v242/${PN}_${PV}.tar.bz2;
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="net"
+
+RDEPEND="
+   media-libs/libsdl[X,sound,video]
+   media-libs/sdl-ttf
+   media-libs/sdl-image[png]
+   net? ( media-libs/sdl-net )
+   virtual/libintl
+"
+DEPEND="${RDEPEND}
+   sys-devel/gettext
+"
+
+DOCS="docs/README docs/TODO"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-nodatalocal.patch
+   "${FILESDIR}"/${P}-underlink.patch
+)
+
+S="${WORKDIR}/${PN}"
+
+src_configure() {
+   local mycmakeargs=(
+   "-DCMAKE_VERBOSE_MAKEFILE=TRUE"
+   "-DCMAKE_INSTALL_PREFIX=/usr"
+   "-DDATA_DIR=/usr/share/slimevolley"
+   $(use net && echo "-DNO_NET=0" || echo "-DNO_NET=1")
+   )
+   cmake-utils_src_configure
+}