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/atomorun2008/files/, games-arcade/atomorun2008/
Date: Sat, 29 Feb 2020 01:15:43
Message-Id: 1582931070.9c9a028994d8605df81c14d1fc3335ea5b57de26.winterheart@gentoo
1 commit: 9c9a028994d8605df81c14d1fc3335ea5b57de26
2 Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 28 23:04:30 2020 +0000
4 Commit: Azamat H. Hackimov <winterheart <AT> gentoo <DOT> ru>
5 CommitDate: Fri Feb 28 23:04:30 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gamerlay.git/commit/?id=9c9a0289
7
8 games-arcade/atomorun2008: remove package
9
10 Deprecated eclass.
11 Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
12
13 games-arcade/atomorun2008/atomorun2008-1.0.ebuild | 65 ---------------
14 .../files/atomorun2008-1.0-homedir.diff | 91 ---------------------
15 games-arcade/atomorun2008/files/atomorun2008.png | Bin 4003 -> 0 bytes
16 games-arcade/atomorun2008/metadata.xml | 8 --
17 4 files changed, 164 deletions(-)
18
19 diff --git a/games-arcade/atomorun2008/atomorun2008-1.0.ebuild b/games-arcade/atomorun2008/atomorun2008-1.0.ebuild
20 deleted file mode 100644
21 index 515c1f2..0000000
22 --- a/games-arcade/atomorun2008/atomorun2008-1.0.ebuild
23 +++ /dev/null
24 @@ -1,65 +0,0 @@
25 -# Copyright 1999-2009 Gentoo Foundation
26 -# Distributed under the terms of the GNU General Public License v2
27 -# $Header: $
28 -
29 -EAPI="2"
30 -
31 -inherit d-games
32 -
33 -DESCRIPTION="Matthias Thurau's great OpenGL 3D platform-game Atomorun2008"
34 -HOMEPAGE="http://atomorun2008.whosme.de/"
35 -SRC_URI="http://atomorun2008.whosme.de/${PN}-${PV}.tar.bz2"
36 -
37 -LICENSE="GPL-2"
38 -SLOT="0"
39 -KEYWORDS="~ppc ~x86"
40 -IUSE=""
41 -
42 -RDEPEND="media-libs/libsdl
43 - media-libs/mesa
44 - media-libs/sdl-mixer"
45 -DEPEND="${RDEPEND}"
46 -
47 -S=${WORKDIR}/${MY_PN}
48 -
49 -src_unpack(){
50 - unpack ${A}
51 -}
52 -
53 -src_prepare(){
54 - cd "${S}/${PN}-${PV}"
55 - epatch ${FILESDIR}/"${P}-homedir.diff"
56 - for i in `find src -name *.d`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done
57 - cd resources
58 - for i in `find heightmaps -name *.txt`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done
59 - for i in `find lvls -name *.txt`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done
60 - for i in `find meshes -name *.zms`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done
61 - for i in `find meshes -name *.py`; do sed -i "$i" -e "s:resources/:"${GAMES_DATADIR}"/"${PN}"/resources/:g"; done
62 -}
63 -
64 -src_compile() {
65 - cd "${S}/${PN}-${PV}"
66 - emake || die
67 -}
68 -
69 -src_install() {
70 - cd "${S}/${PN}-${PV}"
71 - dogamesbin ${PN}
72 -
73 - local datadir="${GAMES_DATADIR}"/"${PN}"
74 - dodir ${datadir}
75 - insinto "${GAMES_DATADIR}"/"${PN}"
76 - doins -r resources || die
77 -
78 - insinto "${GAMES_SYSCONFDIR}"/"${PN}"
79 - doins resources/config.cfg || die "doins config.cfg failed"
80 -
81 - newicon "${FILESDIR}"/"${PN}.png" "${PN}.png"
82 - make_desktop_entry "${PN}" "${PN}"
83 - dodoc README*
84 - prepgamesdirs
85 -}
86 -
87 -pkg_postinst() {
88 - games_pkg_postinst
89 -}
90
91 diff --git a/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff b/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff
92 deleted file mode 100644
93 index b04ee58..0000000
94 --- a/games-arcade/atomorun2008/files/atomorun2008-1.0-homedir.diff
95 +++ /dev/null
96 @@ -1,91 +0,0 @@
97 -diff -Naur atomorun2008-1.0/src/application.d atomorun2008-1.0-p/src/application.d
98 ---- atomorun2008-1.0/src/application.d 2008-03-13 16:33:20.000000000 +0100
99 -+++ atomorun2008-1.0-p/src/application.d 2009-08-28 18:16:49.000000000 +0200
100 -@@ -24,6 +24,8 @@
101 -
102 - import std.stdio;
103 - import std.stream;
104 -+import std.c.stdlib;
105 -+import std.string;
106 -
107 - class Application : Task, ActionListener {
108 - public:
109 -@@ -138,17 +140,28 @@
110 - };
111 - };
112 -
113 -+
114 -+ static const char[] PREF_FILE = ".atomorun2008/savegame";
115 -+
116 -+public char[] pref_file() {
117 -+ char * home = getenv("HOME");
118 -+ if (home is null)
119 -+ throw new Error("HOME environment variable is not defined");
120 -+ return std.string.toString(home) ~ "/" ~ PREF_FILE;
121 -+ }
122 -+
123 -+
124 - private:
125 - void addPrize(int p) {
126 - File savegame = new File();
127 -- savegame.open("resources/savegame", FileMode.In);
128 -+ savegame.open(pref_file(), FileMode.In);
129 - int[] savegameData;
130 - while (!savegame.eof) {
131 - savegameData ~= 0;
132 - savegame.readf(&savegameData[length-1]);
133 - };
134 - savegame.close();
135 -- savegame.open("resources/savegame", FileMode.Out);
136 -+ savegame.open(pref_file(), FileMode.Out);
137 - if (p>savegameData[0] && attribute == "resources/lvls/lvl1.txt") savegame.writef(p, " ");
138 - else savegame.writef(savegameData[0], " ");
139 - if (p>savegameData[1] && attribute == "resources/lvls/lvl2.txt") savegame.writef(p, " ");
140 -diff -Naur atomorun2008-1.0/src/dengine.d atomorun2008-1.0-p/src/dengine.d
141 ---- atomorun2008-1.0/src/dengine.d 2008-03-11 11:44:54.000000000 +0100
142 -+++ atomorun2008-1.0-p/src/dengine.d 2009-08-28 18:17:09.000000000 +0200
143 -@@ -12,7 +12,7 @@
144 -
145 - class DEngine : Task {
146 - void init() {
147 -- Config.load("resources/config.cfg");
148 -+ Config.load("/etc/games/atomorun2008/config.cfg");
149 -
150 - myTasks ~= Window.getInstance();
151 - myTasks ~= Input.getInstance();
152 -diff -Naur atomorun2008-1.0/src/menuelvl.d atomorun2008-1.0-p/src/menuelvl.d
153 ---- atomorun2008-1.0/src/menuelvl.d 2008-03-13 16:35:20.000000000 +0100
154 -+++ atomorun2008-1.0-p/src/menuelvl.d 2009-08-28 18:18:20.000000000 +0200
155 -@@ -16,11 +16,23 @@
156 - import texture2d;
157 -
158 - import std.stream;
159 -+import std.c.stdlib;
160 -+import std.string;
161 -
162 - import std.stdio;
163 -
164 - class MenueLVL : MenueImpl {
165 - public:
166 -+
167 -+ static const char[] PREF_FILE = ".atomorun2008/savegame";
168 -+
169 -+public char[] pref_file() {
170 -+ char * home = getenv("HOME");
171 -+ if (home is null)
172 -+ throw new Error("HOME environment variable is not defined");
173 -+ return std.string.toString(home) ~ "/" ~ PREF_FILE;
174 -+ }
175 -+
176 - override void init(Menue theMenue) {
177 - myButtons.length = 1;
178 - myButtons[0] = new Button;
179 -@@ -57,7 +69,7 @@
180 - myImageButtons[6].addActionListener(theMenue, "Game", "resources/lvls/lvl3b.txt");
181 -
182 - File hm = new File();
183 -- hm.open("resources/savegame", FileMode.In);
184 -+ hm.open(pref_file(), FileMode.In);
185 - int data;
186 - while (!hm.eof) {
187 - hm.readf(&data);
188
189 diff --git a/games-arcade/atomorun2008/files/atomorun2008.png b/games-arcade/atomorun2008/files/atomorun2008.png
190 deleted file mode 100755
191 index ce18ef9..0000000
192 Binary files a/games-arcade/atomorun2008/files/atomorun2008.png and /dev/null differ
193
194 diff --git a/games-arcade/atomorun2008/metadata.xml b/games-arcade/atomorun2008/metadata.xml
195 deleted file mode 100644
196 index 1811bf7..0000000
197 --- a/games-arcade/atomorun2008/metadata.xml
198 +++ /dev/null
199 @@ -1,8 +0,0 @@
200 -<?xml version="1.0" encoding="UTF-8"?>
201 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
202 -<pkgmetadata>
203 -<maintainer type="person">
204 - <email>frostworks@×××.de</email>
205 - <name>Marcel Unbehaun</name>
206 -</maintainer>
207 -</pkgmetadata>