Gentoo Archives: gentoo-commits

From: "Azamat H. Hackimov" <winterheart@××××××.ru>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gamerlay:master commit in: games-arcade/megamario/, games-arcade/megamario/files/
Date: Sat, 29 Feb 2020 01:15:41
Message-Id: 1582927560.4083da268d0b225ec5c0dc4cf6953a74fe33c3f7.winterheart@gentoo
1 commit: 4083da268d0b225ec5c0dc4cf6953a74fe33c3f7
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 28 22:04:44 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Fri Feb 28 22:06:00 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=4083da26
7
8 games-arcade/megamario: remove package
9
10 Unbuildable, deprecated eclass.
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 games-arcade/megamario/files/1.6-gcc43.patch | 23 ------------
14 games-arcade/megamario/files/1.6-hqmusic.patch | 24 ------------
15 games-arcade/megamario/files/1.6-logpath.patch | 12 ------
16 games-arcade/megamario/megamario-1.6.ebuild | 51 --------------------------
17 4 files changed, 110 deletions(-)
18
19 diff --git a/games-arcade/megamario/files/1.6-gcc43.patch b/games-arcade/megamario/files/1.6-gcc43.patch
20 deleted file mode 100644
21 index 2aa1d84..0000000
22 --- a/games-arcade/megamario/files/1.6-gcc43.patch
23 +++ /dev/null
24 @@ -1,23 +0,0 @@
25 -diff -Naur src/global.cpp src-p/global.cpp
26 ---- src/global.cpp 2007-03-07 10:34:56.000000000 +0100
27 -+++ src-p/global.cpp 2009-08-21 15:00:08.000000000 +0200
28 -@@ -9,6 +9,7 @@
29 -
30 - #include "Global.h"
31 - #include "unixutils.h"
32 -+#include <limits.h>
33 -
34 -
35 -
36 -diff -Naur src/levels.h src-p/levels.h
37 ---- src/levels.h 2007-03-07 10:35:04.000000000 +0100
38 -+++ src-p/levels.h 2009-08-21 15:00:34.000000000 +0200
39 -@@ -8,7 +8,7 @@
40 -
41 - #ifndef __LEVELS_H__
42 - #define __LEVELS_H__
43 --
44 -+#include <limits.h>
45 -
46 - class cScene
47 - {
48
49 diff --git a/games-arcade/megamario/files/1.6-hqmusic.patch b/games-arcade/megamario/files/1.6-hqmusic.patch
50 deleted file mode 100644
51 index f10a834..0000000
52 --- a/games-arcade/megamario/files/1.6-hqmusic.patch
53 +++ /dev/null
54 @@ -1,24 +0,0 @@
55 -diff -Naur src/functions.cpp src-p/functions.cpp
56 ---- src/functions.cpp 2007-03-07 10:34:56.000000000 +0100
57 -+++ src-p/functions.cpp 2009-08-21 16:17:42.000000000 +0200
58 -@@ -447,7 +447,7 @@
59 - }
60 - else
61 - {
62 -- sprintf(tmp, "mp3music/%s",filename);
63 -+ sprintf(tmp, DATADIR "mp3music/%s",filename);
64 - tmp[strlen(tmp)-3]='m';
65 - tmp[strlen(tmp)-2]='p';
66 - tmp[strlen(tmp)-1]='3';
67 -diff -Naur src/main.cpp src-p/main.cpp
68 ---- src/main.cpp 2007-03-07 10:35:04.000000000 +0100
69 -+++ src-p/main.cpp 2009-08-21 16:18:09.000000000 +0200
70 -@@ -413,7 +413,7 @@
71 -
72 -
73 - fstream fin;
74 --fin.open("mp3music/music_available.dat",ios::in);
75 -+fin.open( DATADIR "mp3music/music_available.dat",ios::in);
76 - if( fin.is_open() )
77 - {
78 - HighQualityMusicFound=1;
79
80 diff --git a/games-arcade/megamario/files/1.6-logpath.patch b/games-arcade/megamario/files/1.6-logpath.patch
81 deleted file mode 100644
82 index ac6c5e0..0000000
83 --- a/games-arcade/megamario/files/1.6-logpath.patch
84 +++ /dev/null
85 @@ -1,12 +0,0 @@
86 -diff -Naur src/main.cpp src-p/main.cpp
87 ---- src/main.cpp 2007-03-07 10:35:04.000000000 +0100
88 -+++ src-p/main.cpp 2009-08-21 16:22:38.000000000 +0200
89 -@@ -61,7 +61,7 @@
90 -
91 - #endif /* defined __unix__ */
92 -
93 -- out_logfile.open ("log.txt");
94 -+ out_logfile.open ("%s/.megamario/log.txt");
95 -
96 - dictionary * d = iniparser_new(szIniFile);
97 - pixelation = iniparser_getboolean (d, "Mario:Pixelation", 1);
98
99 diff --git a/games-arcade/megamario/megamario-1.6.ebuild b/games-arcade/megamario/megamario-1.6.ebuild
100 deleted file mode 100644
101 index e8ba586..0000000
102 --- a/games-arcade/megamario/megamario-1.6.ebuild
103 +++ /dev/null
104 @@ -1,51 +0,0 @@
105 -# Copyright 1999-2009 Gentoo Foundation
106 -# Distributed under the terms of the GNU General Public License v2
107 -# $Header: $
108 -
109 -EAPI="2"
110 -
111 -inherit games
112 -
113 -MY_PN=MegaMario
114 -
115 -DESCRIPTION="Mario remake"
116 -HOMEPAGE="http://mmario.sourceforge.net/"
117 -SRC_URI="mirror://sourceforge/mmario/${MY_PN}_v${PV}c_full.zip"
118 -
119 -LICENSE="GPL-2"
120 -SLOT="0"
121 -KEYWORDS="~x86"
122 -IUSE=""
123 -
124 -RDEPEND="media-libs/libsdl
125 - media-libs/mesa
126 - media-libs/sdl-ttf
127 - media-libs/sdl-image
128 - media-libs/sdl-mixer"
129 -DEPEND="${RDEPEND}"
130 -
131 -src_prepare(){
132 - epatch "${FILESDIR}"/${PV}-gcc43.patch
133 - epatch "${FILESDIR}"/${PV}-hqmusic.patch
134 - epatch "${FILESDIR}"/${PV}-logpath.patch
135 - sed -s \
136 - -e 's/\/home\/opt/${GAMES_DATADIR}/g' -i Makefile \
137 - -e 's/\/share//g' -i Makefile \
138 - || die "sed failed"
139 -}
140 -
141 -src_install() {
142 - local datadir="${GAMES_DATADIR}"/${PN}
143 - dogamesbin ${PN}
144 - chmod 755 ${WORKDIR}/data/gfx/tiles/pipes/left
145 - for i in `find ${WORKDIR}/data -name "*.PNG"`; do \
146 - mv $i `echo $i|sed s/PNG/png/`; \
147 - done
148 - for i in `find ${WORKDIR}/data -name "*.JPG"`; do \
149 - mv $i `echo $i|sed s/JPG/jpg/`; \
150 - done
151 - insinto "${datadir}"
152 - doins -r data/* mp3music || die "data install failed"
153 - doicon ${PN}.png
154 - domenu ${PN}.desktop
155 -}