commit: 57f2b1108b5515011b19ba92277c5c81ccdd1461 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> AuthorDate: Sat Feb 29 00:58:59 2020 +0000 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru> CommitDate: Sat Feb 29 00:58:59 2020 +0000 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=57f2b110
games-arcade/rotategear: remove package Unavailable sources, deprecated eclass. Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> .../rotategear/files/rotategear-105-homedir.patch | 502 --------------------- .../rotategear/files/rotategear-105-makefile.patch | 27 -- games-arcade/rotategear/metadata.xml | 8 - games-arcade/rotategear/rotategear-105.ebuild | 63 --- 4 files changed, 600 deletions(-) diff --git a/games-arcade/rotategear/files/rotategear-105-homedir.patch b/games-arcade/rotategear/files/rotategear-105-homedir.patch deleted file mode 100644 index 24d3185..0000000 --- a/games-arcade/rotategear/files/rotategear-105-homedir.patch +++ /dev/null @@ -1,502 +0,0 @@ -diff -Naur src/act.c src/act.c ---- src/act.c 2009-05-16 11:50:42.000000000 +0200 -+++ src/act.c 2009-10-20 12:20:29.000000000 +0200 -@@ -352,6 +352,14 @@ - - void act_init( void ) - { -+#ifdef __LINUX__ -+ char workfile[300]; -+ sprintf(workfile, "%s/.rotategear/save/work.sav", getenv("HOME")); -+ char itemfile[300]; -+ sprintf(itemfile, "%s/.rotategear/save/item_wk.sav", getenv("HOME")); -+ char targetfile[300]; -+ sprintf(targetfile, "%s/.rotategear/save/target", getenv("HOME")); -+#endif - long i; - long x; - long y; -@@ -414,13 +422,20 @@ - } - - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ LoadGameFlag2(workfile); -+#else - LoadGameFlag2( "save/work.sav"); -+#endif - for ( i = 0; i < 512; i++ ) - { - save_data[i] = gameflag2[i]; - } -- -+#ifdef __LINUX__ -+ LoadFile( targetfile, &target_save[0], sizeof( target_save ) ); -+#else - LoadFile( "save/target", &target_save[0], sizeof( target_save ) ); -+#endif - - // player[6] = save_data[8]; /* �X�L�� */ - // player[7] = save_data[7]; /* �n�[�g�̂����珊���� */ -@@ -1949,10 +1964,20 @@ - /* �ꎞ�t�@�C���ۑ� */ - void save_file_w( ) - { -+#ifdef __LINUX__ -+ char configfile[300]; -+ sprintf(configfile, "%s/.rotategear/save/config", getenv("HOME")); -+ char workfile[300]; -+ sprintf(workfile, "%s/.rotategear/save/work.sav", getenv("HOME")); -+ char itemfile[300]; -+ sprintf(itemfile, "%s/.rotategear/save/item_wk.sav", getenv("HOME")); -+#endif - long i; -- -+#ifdef __LINUX__ -+ SaveGameFlag(configfile); -+#else - SaveGameFlag("save/config"); -- -+#endif - - ResetGameFlag2( ); - // save_data[7] = player[7]; /* �n�[�g�̂����珊���� */ -@@ -1968,16 +1993,22 @@ - { - gameflag2[i] = save_data[i]; - } -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - /* �A�C�e���擾��� */ - ResetGameFlag2(); - for ( i = 0; i < 500; i++ ) - { - gameflag2[i] = item_wk[i]; - } -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2("save/item_wk.sav"); -- -+#endif - } - - -@@ -6765,31 +6796,63 @@ - - void replay_file_save_w( void ) - { -- -+#ifdef __LINUX__ -+// char replaywfile[300]; -+// sprintf(replaywfile, "%s/.rotategear/replay/%d/replay_data_w_%d.dat", getenv("HOME")); -+ char replay_path[300]; -+ sprintf(replay_path, "%s/.rotategear/replay/", getenv("HOME")); -+#endif - long d_num; - d_num = 1; -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf(string, replay_path, (int)stage, (int)save_data[3] ); -+//#else - sprintf(string,"replay/%d/replay_data_w_%d.dat", (int)stage, (int)save_data[3] ); -+//#endif - SaveFile( string, &replay[0], sizeof( replay ) ); - - } - void replay_file_save( long type ) - { -- -+#ifdef __LINUX__ -+ char replayfile[300]; -+ sprintf(replayfile, "%s/.rotategear/replay/%d/replay_data_%d.dat", getenv("HOME")); -+ char replayjfile[300]; -+ sprintf(replayjfile, "%s/.rotategear/replay/%d/replay_data_j%d.dat", getenv("HOME")); -+#endif - long d_num; - d_num = replay_file_name; - if ( type == 0 ) - { -+ -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf(string, replayfile, ( int )stage,, (int)save_data[3] ); -+//#else - sprintf(string,"replay/%d/replay_data_%d.dat", (int)stage, (int)save_data[3] ); -+//#endif - } - else - { -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf(string, replayjfile, ( int )stage,, (int)save_data[3] ); -+//#else - sprintf(string,"replay/%d/replay_data_j%d.dat", (int)stage, (int)save_data[3] ); -+//#endif - } - SaveFile( string, &replay[0], sizeof( replay ) ); - } - - long replay_file_load( void ) - { -+#ifdef __LINUX__ -+ char replayfile[300]; -+ sprintf(replayfile, "%s/.rotategear/replay/%d/replay_data_%d.dat", getenv("HOME")); -+ char replayjfile[300]; -+ sprintf(replayjfile, "%s/.rotategear/replay/%d/replay_data_j%d.dat", getenv("HOME")); -+#endif - long rc ; - long d_num; - -@@ -6798,11 +6861,20 @@ - - if ( gameflag[125] == 0 ) - { -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf(string, replayfile, (int)stage, (int)save_data[3] ); -+//#else - sprintf( string, "replay/%d/replay_data_%d.dat", (int)stage, (int)save_data[3] ); -+//#endif - } - else - { -+//#ifdef __LINUX__ -+// sprintf(string, replayjfile, (int)stage, (int)save_data[3] ); -+//#else - sprintf( string, "replay/%d/replay_data_j%d.dat", (int)stage, (int)save_data[3] ); -+//#endif - } - if ( LoadFile( string, &replay[0], sizeof( replay ) ) ) - { -diff -Naur src/ending.c src/ending.c ---- src/ending.c 2008-07-09 02:49:18.000000000 +0200 -+++ src/ending.c 2009-10-20 12:19:18.000000000 +0200 -@@ -60,6 +60,10 @@ - - void ending_init( void ) - { -+#ifdef __LINUX__ -+ char targetfile[300]; -+ sprintf(targetfile, "%s/.rotategear/save/target", getenv("HOME")); -+#endif - int stage_hosei; - int x; - int y; -@@ -95,8 +99,11 @@ - - LoadBitmap("image/sys/waku.bmp",109,true); //�v���[���i���o�[�Q�ɃV�X�e���p�a�l�o��ǂݍ��� - soundPlayBgm( EN_BGM_GAME07 ); -- -+#ifdef __LINUX__ -+ LoadFile( targetfile, &target_save[0], sizeof( target_save ) ); -+#else - LoadFile( "save/target", &target_save[0], sizeof( target_save ) ); -+#endif - tergetnam = 0; - for ( x = 0; x < 5; x++ ) - { -diff -Naur src/init.c src/init.c ---- src/init.c 2008-12-19 00:46:08.000000000 +0100 -+++ src/init.c 2009-10-20 12:19:18.000000000 +0200 -@@ -15,6 +15,9 @@ - #include <unistd.h> - #endif - -+#ifdef __LINUX__ -+#include <fcntl.h> -+#endif - //#define MacOS - - void main_init( void ); -@@ -25,6 +28,17 @@ - - int main(int argc, char *argv[]) - { -+#ifdef __LINUX__ -+ char cfg_path[300]; -+ sprintf(cfg_path, "%s/.rotategear/", getenv("HOME")); -+ mkdir(cfg_path, 0755); -+ char save_path[300]; -+ sprintf(save_path, "%s/.rotategear/save/", getenv("HOME")); -+ mkdir(save_path, 0755); -+ char replay_path[300]; -+ sprintf(replay_path, "%s/.rotategear/replay/", getenv("HOME")); -+ mkdir(replay_path, 0755); -+#endif - SDL_Rect rect; - Uint32 flags; - SDL_Surface* tmp; -@@ -173,13 +187,18 @@ - - void ExitProgram(void) - { -- -+#ifdef __LINUX__ -+ char configfile[300]; -+ sprintf(configfile, "%s/.rotategear/save/config", getenv("HOME")); -+#endif - soundStopBgm(0); - soundStopSeAll(); - soundRelease(); -- -+#ifdef __LINUX__ -+ SaveGameFlag(configfile); -+#else - SaveGameFlag("save/config"); -- -+#endif - closePAD(); - // closeSDL(); - SDL_Quit(); -@@ -193,10 +212,17 @@ - - void main_init_config( void ) - { -+#ifdef __LINUX__ -+ char configfile[300]; -+ sprintf(configfile, "%s/.rotategear/save/config", getenv("HOME")); -+#endif - int i; - i = 0; -- -+#ifdef __LINUX__ -+ if ( ! ( LoadGameFlag(configfile) == 0 ) ) -+#else - if ( ! ( LoadGameFlag("save/config") == 0 ) ) -+#endif - { - /* �t�@�C�������݂��Ȃ��ꍇ�̏���l�ݒ� */ - ResetGameFlag(); -diff -Naur src/stageselect.c src/stageselect.c ---- src/stageselect.c 2008-07-10 23:20:58.000000000 +0200 -+++ src/stageselect.c 2009-10-20 12:19:18.000000000 +0200 -@@ -64,6 +64,10 @@ - - void stageselect_init( void ) - { -+#ifdef __LINUX__ -+ char targetfile[300]; -+ sprintf(targetfile, "%s/.rotategear/save/target", getenv("HOME")); -+#endif - scene_exit = 1; - - mode = 0; //���ݑI������Ă��鍀�� �O�F�f�`�l�d�r�s�`�q�s�@�P�F�n�o�s�h�n�m�@�Q�F�d�w�h�s -@@ -101,9 +105,11 @@ - LoadBitmap("image/sys/fonts2.bmp",18,true); //�v���[���i���o�[�Q�ɃV�X�e���p�a�l�o��ǂݍ��� - LoadBitmap("image/sys/waku.bmp",109,true); //�v���[���i���o�[�Q�ɃV�X�e���p�a�l�o��ǂݍ��� - -- -+#ifdef __LINUX__ -+ LoadFile( targetfile, &target_save[0], sizeof( target_save ) ); -+#else - LoadFile( "save/target", &target_save[0], sizeof( target_save ) ); -- -+#endif - if ( gameflag[70] == 0 ) - { - soundPlayBgm( EN_BGM_GAME01 ); -@@ -126,6 +132,12 @@ - - void stageselect_keys( void ) - { -+#ifdef __LINUX__ -+ char workfile[300]; -+ sprintf(workfile, "%s/.rotategear/save/work.sav", getenv("HOME")); -+ char itemfile[300]; -+ sprintf(itemfile, "%s/.rotategear/save/item_wk.sav", getenv("HOME")); -+#endif - if ( IsPushKey( gameflag[0] ) ) - { - soundPlaySe( EN_SE_SELECT ); -@@ -185,11 +197,17 @@ - gameflag[70] = 1; - gameflag[128] = 0; //�}�b�v�r���[ - gameflag[129] = 1; //�X�e�[�W�Z���N�g����J�n -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -diff -Naur src/title.c src/title.c ---- src/title.c 2008-07-09 02:52:14.000000000 +0200 -+++ src/title.c 2009-10-20 12:21:56.000000000 +0200 -@@ -148,6 +148,13 @@ - - void title_keys( void ) - { -+#ifdef __LINUX__ -+ char workfile[300]; -+ sprintf(workfile, "%s/.rotategear/save/work.sav", getenv("HOME")); -+ char itemfile[300]; -+ sprintf(itemfile, "%s/.rotategear/save/item_wk.sav", getenv("HOME")); -+#endif -+ - if ( IsPushKey( gameflag[0] ) ) - { - soundPlaySe( EN_SE_SELECT ); -@@ -288,11 +295,17 @@ - gameflag[70] = 1; - gameflag[128] = 0; //�}�b�v�r���[ - gameflag[129] = 0; //�X�e�[�W�Z���N�g����J�n -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -@@ -318,11 +331,17 @@ - gameflag[70] = 1; - gameflag[128] = 0; //�}�b�v�r���[ - gameflag[129] = 0; //�X�e�[�W�Z���N�g����J�n -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -@@ -345,11 +364,17 @@ - gameflag[70] = 1; - gameflag[128] = 1; //�}�b�v�r���[ - gameflag[129] = 0; //�X�e�[�W�Z���N�g����J�n -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -@@ -367,11 +392,17 @@ - gameflag[70] = 1; - gameflag[128] = 0; //�}�b�v�r���[ - gameflag[129] = 0; //�X�e�[�W�Z���N�g����J�n -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -@@ -428,11 +459,17 @@ - gameflag[132] = 1; //���v���C - gameflag[129] = 0; //�X�e�[�W�Z���N�g����J�n - gameflag[70] = 1; -+#ifdef __LINUX__ -+ SaveGameFlag2(workfile); -+#else - SaveGameFlag2( "save/work.sav"); -- -+#endif - ResetGameFlag2( ); -+#ifdef __LINUX__ -+ SaveGameFlag2(itemfile); -+#else - SaveGameFlag2( "save/item_wk.sav"); -- -+#endif - gameflag[40] = 4; - g_scene = EN_SN_ACT; - scene_exit=0; -@@ -736,6 +773,10 @@ - /***************************************************************************/ - int replay_file_find( void ) - { -+#ifdef __LINUX__ -+ char replaydfile[300]; -+ sprintf(replaydfile, "%s/.rotategear/replay/%d/replay_data_%d.dat", getenv("HOME")); -+#endif - long i; - int file_j; - int stage; -@@ -750,8 +791,12 @@ - } - - file_j = 1; -- -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf( string, replaydfile, ( int )stage, ( int )gameflag[120] ); -+//#else - sprintf( string, "replay/%d/replay_data_%d.dat", ( int )stage, ( int )gameflag[120] ); -+//#endif - if ( LoadFile( string, &i, 1 ) ) - { - file_j = 0; -@@ -773,6 +818,11 @@ - /***************************************************************************/ - int replay_file_find2( void ) - { -+// TODO LINUX -+//#ifdef __LINUX__ -+// char replayjfile[300]; -+// sprintf(replayjfile, "%s/.rotategear/replay/%d/replay_data_%d.dat", getenv("HOME")); -+//#endif - long i; - int file_j; - int stage; -@@ -787,7 +837,12 @@ - } - - file_j = 1; -+// TODO LINUX -+//#ifdef __LINUX__ -+// sprintf( string, replayjfile, ( int )stage, ( int )gameflag[120] ); -+//#else - sprintf( string, "replay/%d/replay_data_j%d.dat", ( int )stage, ( int )gameflag[120] ); -+//#endif - if ( LoadFile( string, &i, 1 ) ) - { - file_j = 0; diff --git a/games-arcade/rotategear/files/rotategear-105-makefile.patch b/games-arcade/rotategear/files/rotategear-105-makefile.patch deleted file mode 100644 index 9dda65b..0000000 --- a/games-arcade/rotategear/files/rotategear-105-makefile.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -Naur src/Makefile src/Makefile ---- src/Makefile 2008-05-14 03:08:04.000000000 +0200 -+++ src/Makefile 2009-10-19 14:59:05.000000000 +0200 -@@ -5,14 +5,14 @@ - CFLAGS = $(DEFAULT_CFLAGS) - CXXFLAGS = $(DEFAULT_CFLAGS) - #LDFLAGS = `sdl-config --libs` --LDFLAGS = -L/usr/local/mingw32/lib -logg -lvorbis -lvorbisenc -lvorbisfile -lsmpeg -lmingw32 -lSDL_gfx -lSDL_mixer -lSDLmain -lSDL -mwindows -mno-cygwin -+LDFLAGS = -lSDL_gfx -lSDL_mixer - - OBJS = ram.o util_snd.o function.o dconv.o scene.o title.o init.o act.o option.o ending.o logo.o stageselect.o demo.o - - SOURCES = $(patsubst %.o, %.c, $(OBJS)) - - ifeq ($(wildcard .depend),.depend) --do-it-all: RotateGear -+do-it-all: ../rotategear - include .depend - else - do-it-all: depend recursive -@@ -28,5 +28,5 @@ - clean: - $(RM) $(OBJS) *~ .depend RotateGear.exe - --RotateGear: $(OBJS) -+../rotategear: $(OBJS) - $(CXX) -o $@ $(OBJS) $(LDFLAGS) diff --git a/games-arcade/rotategear/metadata.xml b/games-arcade/rotategear/metadata.xml deleted file mode 100644 index c18eb4b..0000000 --- a/games-arcade/rotategear/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="person"> - <email>frostwo...@gmx.de</email> - <name>Marcel Unbehaun</name> -</maintainer> -</pkgmetadata> diff --git a/games-arcade/rotategear/rotategear-105.ebuild b/games-arcade/rotategear/rotategear-105.ebuild deleted file mode 100644 index 9972154..0000000 --- a/games-arcade/rotategear/rotategear-105.ebuild +++ /dev/null @@ -1,63 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" - -MY_PN=rg - -inherit eutils games - -DESCRIPTION="multiplatform platform puzzle game" -HOMEPAGE="http://maglog.jp/alpha-secret-base/Article313069.html" -SRC_URI="http://www.geocities.jp/dij4121/alpha/data/${MY_PN}_${PV}.zip" -LICENSE="Yawaraka-flexible" -KEYWORDS="~x86" -IUSE="" -SLOT="0" - -RDEPEND="media-libs/libsdl - media-libs/sdl-image - media-libs/sdl-gfx - media-libs/sdl-mixer[vorbis]" -DEPEND="${RDEPEND} - app-arch/unzip" - -S=${WORKDIR}/${MY_PN}_${PV} - -src_prepare(){ - rm src/.depend - epatch ${FILESDIR}/"${P}-makefile.patch" - epatch ${FILESDIR}/"${P}-homedir.patch" - sed -i -e "s:sound/:"${GAMES_DATADIR}"/"${PN}"/sound/:g" -i src/init.c - sed -i -e "s:data/:"${GAMES_DATADIR}"/"${PN}"/data/:g" -i src/act.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/demo.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/ending.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/act.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/logo.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/init.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/option.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/title.c - sed -i -e "s:image/:"${GAMES_DATADIR}"/"${PN}"/image/:g" -i src/stageselect.c -} - -src_compile() { - cd src - emake || die "make failed" -} -src_install() { - dogamesbin ${PN} - local datadir="${GAMES_DATADIR}"/"${PN}" - dodir ${datadir} - insinto "${GAMES_DATADIR}"/"${PN}" - doins -r sound data image || die - newicon RotateGear.png "${PN}.png" - make_desktop_entry "${PN}" "${PN}" - dodoc readme.txt - prepgamesdirs -} - -pkg_postinst() { - games_pkg_postinst - -} \ No newline at end of file