Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-arcade/xscavenger/, games-arcade/xscavenger/files/
Date: Tue, 29 Jun 2021 20:55:27
Message-Id: 1624999995.afcfe012bc1f8120630684d79075951d4cad462e.ionen@gentoo
1 commit: afcfe012bc1f8120630684d79075951d4cad462e
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 29 20:14:16 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 29 20:53:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afcfe012
7
8 games-arcade/xscavenger: drop 1.4.4-r2
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 games-arcade/xscavenger/Manifest | 1 -
13 games-arcade/xscavenger/files/1.4.4-gentoo.patch | 198 ---------------------
14 games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild | 51 ------
15 3 files changed, 250 deletions(-)
16
17 diff --git a/games-arcade/xscavenger/Manifest b/games-arcade/xscavenger/Manifest
18 index 06d5580484f..613e7aa425d 100644
19 --- a/games-arcade/xscavenger/Manifest
20 +++ b/games-arcade/xscavenger/Manifest
21 @@ -1,3 +1,2 @@
22 -DIST xscavenger-1.4.4.tgz 193346 BLAKE2B eb86b97fad8a9d261935579d298f43e7063fbd0624e8fd654c72b4130e98db38541d54c59938375c8d6df4b50193436f86826c49b8bafe123b4be5c80d3f75d8 SHA512 5f200912b9114ea0c09f0bfcc3f06be2e7c2e1700a744319081f5f3a22c8b93663477076af27837326acf9830af6f597cf8f8fb44562db7d00128321487841ec
23 DIST xscavenger-1.4.5.tgz 192990 BLAKE2B 5df2ca8b7b331d9c17ef8f287a8967f4f95a8737660fb42e4f5012f00ab24698d555e3f76bd82f3ba7b55423244e9d0a4392ccce99c84bed6cf80dee15ab3bf6 SHA512 ebdde5c74409dc881503ee6eeecb7194218141c6e7c169c2febd1a4339625e1532a654fc1ac2ce7b3256e8a721f656dfb7bddc4394e0513a5130e3cc8795dfe7
24 DIST xscavenger.png 3096 BLAKE2B c1e346a2950affdd41bf89358d9138196af7a5c422e64a863f9480b9876320ff381cbd301be644d02013754552303e2141a0962b2dcc16bddc6d0a2c646405d7 SHA512 9a9a8f70baac35d0818c6d34d6af0420db27e5f44cd0072e14d520d4f142ad41f5234868cda4cd0a03157987e2fc030df552ac37b02d07934c4de0c7c8b46947
25
26 diff --git a/games-arcade/xscavenger/files/1.4.4-gentoo.patch b/games-arcade/xscavenger/files/1.4.4-gentoo.patch
27 deleted file mode 100644
28 index 4c51b37d215..00000000000
29 --- a/games-arcade/xscavenger/files/1.4.4-gentoo.patch
30 +++ /dev/null
31 @@ -1,198 +0,0 @@
32 ---- a/Imakefile
33 -+++ b/Imakefile
34 -@@ -1,20 +1,36 @@
35 - # set this to the path where data files should be stored. LIBDIR
36 - # is automatically defined by imake, usually to /usr/X11R6/lib/X11, so
37 - # this should be a good default.
38 --LIBNAME = $(LIBDIR)/scavenger
39 -+LIBNAME = GENTOO_DATADIR/scavenger
40 -
41 - SRCS = anim.c edit.c scav.c x.c sound.c
42 - OBJS = $(SRCS:.c=.o)
43 -
44 -+# the "subst" hack below is because imake uses the C preprocessor, which
45 -+# will interpret an unquoted "/*" as a comment beginning.
46 -+#LIB_DATA = $(subst S,/,..SdataS*)
47 - LIB_DATA = \
48 -- ../data/badguy.lbm ../data/brownblue.lbm ../data/death.raw \
49 -- ../data/dig.raw ../data/fall.raw ../data/levels.scl \
50 -- ../data/microman.lbm ../data/pop.raw ../data/redbrick.lbm \
51 -- ../data/reddevil.lbm ../data/regularguy.lbm ../data/spiralthing.lbm \
52 -+ ../data/badguy.lbm \
53 -+ ../data/brownblue.lbm \
54 -+ ../data/death.raw \
55 -+ ../data/dig.raw \
56 -+ ../data/fall.raw \
57 -+ ../data/flashspiral.lbm \
58 -+ ../data/gems.lbm \
59 -+ ../data/jungle.lbm \
60 -+ ../data/levels.scl \
61 -+ ../data/microman.lbm \
62 -+ ../data/pop.raw \
63 -+ ../data/redbrick.lbm \
64 -+ ../data/reddevil.lbm \
65 -+ ../data/regularguy.lbm \
66 -+ ../data/spiralthing.lbm \
67 - ../data/victory.raw
68 -
69 - LOCAL_LIBRARIES = $(XLIB)
70 - EXTRA_DEFINES = -DLIBNAME=\"$(LIBNAME)\"
71 -
72 --ComplexProgramTarget(scavenger)
73 -+AllTarget(scavenger)
74 -+NormalProgramTarget(scavenger,$(OBJS),,,$(XLIB))
75 -+InstallProgram(scavenger,GENTOO_BINDIR)
76 - InstallMultipleFlags($(LIB_DATA),$(LIBNAME),-m 644)
77 ---- a/scav.c
78 -+++ b/scav.c
79 -@@ -240,15 +240,19 @@
80 -
81 -
82 -
83 -+/* 14 Dec 2002: re-wrote to be more portable - don't assume two's-complement
84 -+ * representation for integers, and fix bug when sizeof(long) > 4.
85 -+ */
86 - long readlong()
87 - {
88 --long val1=0;
89 --
90 -- val1=myci()<<24L;
91 -- val1|=myci()<<16L;
92 -- val1|=myci()<<8;
93 -- val1|=myci();
94 -+ long val1=0;
95 -+ int i,j;
96 -
97 -+ for (i=0; i<4; i++) {
98 -+ j = myci();
99 -+ if (j==-1) return -1L;
100 -+ val1 = (val1<<8) + j;
101 -+ }
102 - return val1;
103 - }
104 - int rbs()
105 -@@ -309,7 +313,7 @@
106 - bmw=bmh=byteswide=0;
107 - while( (type=readlong()) )
108 - {
109 -- if(type==0xffffffffL) break;
110 -+ if(type==-1L) break;
111 - size=readlong();
112 - if(size&1) size++;
113 - if(type==BMHD)
114 -@@ -402,16 +406,16 @@
115 - input=open(resourcename,O_RDONLY);
116 - if(input<0) return -1;
117 - got=read(input,buff,8);
118 -- if(got!=8) return -2;
119 -- if (strncmp(buff,"SCAV",4)) return -3;
120 -+ if(got!=8) {close(input);return -2;}
121 -+ if (strncmp(buff,"SCAV",4)) {close(input);return -3;}
122 - max=(buff[4]<<24) | (buff[5]<<16) | (buff[6]<<8) | buff[7];
123 -- if(num>=max) return 0;
124 -+ if(num>=max) {close(input);return 0;}
125 - lseek(input,(num+1)<<3,SEEK_SET);
126 - got=read(input,buff,8);
127 - offset=(buff[0]<<24) | (buff[1]<<16) | (buff[2]<<8) | buff[3];
128 - length=(buff[4]<<24) | (buff[5]<<16) | (buff[6]<<8) | buff[7];
129 - if(len>length) len=length;
130 -- if(!offset || !len) return 0;
131 -+ if(!offset || !len) {close(input);return 0;}
132 - lseek(input,offset,SEEK_SET);
133 - got=read(input,put,len);
134 - close(input);
135 -@@ -448,8 +452,8 @@
136 - input=open(resourcename,O_RDONLY);
137 - if(input==-1) return -4;
138 - got=read(input,buff,8);
139 -- if(got!=8) return -2;
140 -- if(strncmp(buff,"SCAV",4)) return -3;
141 -+ if(got!=8) {close(input);return -2;}
142 -+ if(strncmp(buff,"SCAV",4)) {close(input);return -3;}
143 - output=creat(bakname,00600);
144 - if(output==-1) {close(input);return -6;}
145 -
146 -@@ -473,12 +477,12 @@
147 - for(i=0;i<max;i++)
148 - if(headers[i+i])
149 - headers[i+i]+=delta;
150 -- if (write(output,"SCAV",4) != 4) return -200;
151 -- if (!rlout(output,max)) return -200;
152 -+ if (write(output,"SCAV",4) != 4) {close(input);close(output);return -200;}
153 -+ if (!rlout(output,max)) {close(input);close(output);return -200;}
154 - headers[num+num]=0;
155 - headers[num+num+1]=len;
156 - for(i=0;i<max+max;i++)
157 -- if (!rlout(output,headers[i])) return -200;
158 -+ if (!rlout(output,headers[i])) {close(input);close(output);return -200;}
159 -
160 - if(offset)
161 - {
162 -@@ -487,8 +491,8 @@
163 - while(count)
164 - {
165 - got=count>1024 ? 1024 : count;
166 -- if (read(input,copybuff,got) != got) return -200;
167 -- if (write(output,copybuff,got) != got) return -200;
168 -+ if (read(input,copybuff,got) != got) {close(input);close(output);return -200;}
169 -+ if (write(output,copybuff,got) != got) {close(input);close(output);return -200;}
170 - count-=got;
171 - }
172 - lseek(input,length,SEEK_CUR);
173 -@@ -498,17 +502,17 @@
174 - {
175 - got=read(input, copybuff, 1024);
176 - if (!got) break;
177 -- if (write (output, copybuff, got) != got) return -200;
178 -+ if (write (output, copybuff, got) != got) {close(input);close(output);return -200;}
179 - offset += got;
180 - }
181 - if(len)
182 - {
183 -- if (write (output, take, len) != len) return -200;
184 -+ if (write (output, take, len) != len) {close(input);close(output);return -200;}
185 - lseek (output, (num+1) << 3, SEEK_SET);
186 -- if (!rlout (output, offset)) return -200;
187 -+ if (!rlout (output, offset)) {close(input);close(output);return -200;}
188 - }
189 - close (input);
190 -- if (fsync(output)) return -200;
191 -+ if (fsync(output)) {close(output);return -200;}
192 - if (close(output)) return -200;
193 - err=rename(bakname,resourcename);
194 - if(err) return -1;
195 -@@ -1382,6 +1386,7 @@
196 - break;
197 - }
198 - }
199 -+ close(file);
200 - }
201 -
202 - void remslash(char *str)
203 -@@ -1416,6 +1421,8 @@
204 - return -3;
205 - }
206 - } while(len);
207 -+ close(input);
208 -+ close(output);
209 - return 0;
210 - }
211 -
212 -@@ -1448,7 +1455,7 @@
213 - printf("Failed to create directory %s, exiting\n",temp);
214 - exit(1);
215 - }
216 -- }
217 -+ } else close(file);
218 -
219 - sprintf(resourcename,"%s/%s/%s",localname,localdirname,LEVELSNAME);
220 - file=open(resourcename,O_RDONLY);
221 -@@ -1485,7 +1492,7 @@
222 - printf("Couldn't create %s\n",temp);
223 - exit(1);
224 - }
225 -- }
226 -+ } else close(file);
227 - }
228 -
229 - void makercname(char *str)
230
231 diff --git a/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild b/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild
232 deleted file mode 100644
233 index 26f6aeae2f8..00000000000
234 --- a/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild
235 +++ /dev/null
236 @@ -1,51 +0,0 @@
237 -# Copyright 1999-2021 Gentoo Authors
238 -# Distributed under the terms of the GNU General Public License v2
239 -
240 -EAPI=7
241 -
242 -inherit desktop toolchain-funcs
243 -
244 -DESCRIPTION="Lode-Runner-like arcade game"
245 -HOMEPAGE="http://www.xdr.com/dash/scavenger.html"
246 -SRC_URI="http://www.xdr.com/dash/${P}.tgz"
247 -S="${WORKDIR}/${P}/src"
248 -
249 -LICENSE="GPL-2"
250 -SLOT="0"
251 -KEYWORDS="~amd64 ~x86"
252 -
253 -BDEPEND=">=x11-misc/imake-1.0.8-r1"
254 -RDEPEND="x11-libs/libXext"
255 -DEPEND="${RDEPEND}"
256 -
257 -PATCHES=(
258 - "${FILESDIR}/${PV}-gentoo.patch"
259 -)
260 -
261 -src_prepare() {
262 - default
263 -
264 - sed -i \
265 - -e "s:GENTOO_DATADIR:/usr/share:" \
266 - -e "s:GENTOO_BINDIR:/usr/bin:" \
267 - Imakefile \
268 - || die
269 -}
270 -
271 -src_configure() {
272 - CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
273 - IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die
274 -}
275 -
276 -src_compile() {
277 - emake \
278 - CC="$(tc-getCC)" \
279 - CDEBUGFLAGS="${CFLAGS}" \
280 - EXTRA_LDOPTIONS="${LDFLAGS}"
281 -}
282 -
283 -src_install() {
284 - emake DESTDIR="${D}" install
285 - dodoc ../{CREDITS,DOC,README,TODO,changelog}
286 - make_desktop_entry scavenger "XScavenger"
287 -}