Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-roguelike/mangband/files/, games-roguelike/mangband/, profiles/
Date: Tue, 11 Dec 2018 13:34:38
Message-Id: 1544535230.a0aeea77d9d5eeb52c3846b432f5a1354f27da9d.mgorny@gentoo
1 commit: a0aeea77d9d5eeb52c3846b432f5a1354f27da9d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 11 13:33:50 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 13:33:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0aeea77
7
8 games-roguelike/mangband: Remove last-rited pkg
9
10 Closes: https://bugs.gentoo.org/661746
11 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
12
13 games-roguelike/mangband/Manifest | 1 -
14 .../mangband/files/mangband-1.1.3-paths.patch | 118 ---------------------
15 .../mangband/files/mangband-1.1.3-strchr.patch | 22 ----
16 games-roguelike/mangband/mangband-1.1.3.ebuild | 83 ---------------
17 games-roguelike/mangband/metadata.xml | 5 -
18 profiles/package.mask | 4 -
19 6 files changed, 233 deletions(-)
20
21 diff --git a/games-roguelike/mangband/Manifest b/games-roguelike/mangband/Manifest
22 deleted file mode 100644
23 index e3b3eba6970..00000000000
24 --- a/games-roguelike/mangband/Manifest
25 +++ /dev/null
26 @@ -1 +0,0 @@
27 -DIST mangband-1.1.3.tar.gz 1497078 BLAKE2B 69f00c9ae4d2600dd9705103dbc753d385015a81f7467e44e38c86cd6f3168474a3832a4c9e8efc353ef75b923362d35e50f49da7752adf43c37d4df015c0e18 SHA512 5efda352607953e94a433bf9aabb496419a22c984dc9e054cebc90623682da23a90fb6cb910fcc950010d469571f2af515bfa7740c921add44ac9ea95e723130
28
29 diff --git a/games-roguelike/mangband/files/mangband-1.1.3-paths.patch b/games-roguelike/mangband/files/mangband-1.1.3-paths.patch
30 deleted file mode 100644
31 index dd955157019..00000000000
32 --- a/games-roguelike/mangband/files/mangband-1.1.3-paths.patch
33 +++ /dev/null
34 @@ -1,118 +0,0 @@
35 -diff --git a/src/config.h.in b/src/config.h.in
36 -index e8efdca..9a6290a 100644
37 ---- a/config.h.in
38 -+++ a/config.h.in
39 -@@ -473,6 +473,9 @@
40 - #ifndef DEFAULT_PATH
41 - # define DEFAULT_PATH "./lib/"
42 - #endif
43 -+#ifndef DEFAULT_PATH_W
44 -+# define DEFAULT_PATH_W DEFAULT_PATH
45 -+#endif
46 -
47 -
48 - /*
49 -diff --git a/src/server/externs.h b/src/server/externs.h
50 -index 249e41b..e1a5c4f 100644
51 ---- a/server/externs.h
52 -+++ a/server/externs.h
53 -@@ -644,7 +644,7 @@ extern errr init_e_info_txt(FILE *fp, char *buf);
54 - extern errr init_r_info_txt(FILE *fp, char *buf);
55 -
56 - /* init.c */
57 --extern void init_file_paths(char *path);
58 -+extern void init_file_paths(char *path, char *path2);
59 - extern void init_some_arrays(void);
60 - extern void load_server_cfg(void);
61 -
62 -diff --git a/src/server/init2.c b/src/server/init2.c
63 -index 00d8a01..27fd2b7 100644
64 ---- a/server/init2.c
65 -+++ a/server/init2.c
66 -@@ -63,10 +63,11 @@
67 - * to succeed even if the strings have not been allocated yet,
68 - * as long as the variables start out as "NULL".
69 - */
70 --void init_file_paths(char *path)
71 -+void init_file_paths(char *path, char *path2)
72 - {
73 - char *tail;
74 --
75 -+ char *tail2;
76 -+ char *tmp;
77 -
78 - /*** Free everything ***/
79 -
80 -@@ -103,6 +104,10 @@ void init_file_paths(char *path)
81 - /* Prepare to append to the Base Path */
82 - tail = path + strlen(path);
83 -
84 -+ tmp = string_make(path2);
85 -+
86 -+ /* Prepare to append to the Base Path */
87 -+ tail2 = path2 + strlen(path2);
88 -
89 - #ifdef VM
90 -
91 -@@ -123,8 +128,8 @@ void init_file_paths(char *path)
92 - /*** Build the sub-directory names ***/
93 -
94 - /* Build a path name */
95 -- strcpy(tail, "data");
96 -- ANGBAND_DIR_DATA = string_make(path);
97 -+ strcpy(tail2, "data");
98 -+ ANGBAND_DIR_DATA = string_make(path2);
99 -
100 - /* Build a path name */
101 - strcpy(tail, "edit");
102 -@@ -147,16 +152,16 @@ void init_file_paths(char *path)
103 - ANGBAND_DIR_PREF = string_make(path);
104 - #endif
105 - /* Build a path name */
106 -- strcpy(tail, "save");
107 -- ANGBAND_DIR_SAVE = string_make(path);
108 -+ strcpy(tail2, "save");
109 -+ ANGBAND_DIR_SAVE = string_make(path2);
110 -
111 - /* Build a path name */
112 - strcpy(tail, "text");
113 - ANGBAND_DIR_TEXT = string_make(path);
114 -
115 - /* Build a path name */
116 -- strcpy(tail, "user");
117 -- ANGBAND_DIR_USER = string_make(path);
118 -+ strcpy(tail2, "user");
119 -+ ANGBAND_DIR_USER = string_make(path2);
120 - #if 0
121 - /* Build a path name */
122 - strcpy(tail, "apex");
123 -diff --git a/src/server/main.c b/src/server/main.c
124 -index 4260b8d..7884b2f 100644
125 ---- a/server/main.c
126 -+++ a/server/main.c
127 -@@ -142,6 +142,7 @@ extern unsigned _ovrbuffer = 0x1500;
128 - static void init_stuff(void)
129 - {
130 - char path[1024];
131 -+ char path2[1024];
132 -
133 - #if defined(AMIGA) || defined(VM)
134 -
135 -@@ -161,10 +162,16 @@ static void init_stuff(void)
136 - /* Hack -- Add a path separator (only if needed) */
137 - if (!suffix(path, PATH_SEP)) strcat(path, PATH_SEP);
138 -
139 -+ /* Use the angband_path, or a default */
140 -+ strcpy(path2, tail ? tail : DEFAULT_PATH_W);
141 -+
142 -+ /* Hack -- Add a path separator (only if needed) */
143 -+ if (!suffix(path2, PATH_SEP)) strcat(path2, PATH_SEP);
144 -+
145 - #endif /* AMIGA / VM */
146 -
147 - /* Initialize */
148 -- init_file_paths(path);
149 -+ init_file_paths(path, path2);
150 - }
151 -
152 - /*
153
154 diff --git a/games-roguelike/mangband/files/mangband-1.1.3-strchr.patch b/games-roguelike/mangband/files/mangband-1.1.3-strchr.patch
155 deleted file mode 100644
156 index f1fa19e1191..00000000000
157 --- a/games-roguelike/mangband/files/mangband-1.1.3-strchr.patch
158 +++ /dev/null
159 @@ -1,22 +0,0 @@
160 -diff --git a/src/common/h-system.h b/src/common/h-system.h
161 -index f60bbc1..0294dd3 100644
162 ---- a/common/h-system.h
163 -+++ a/common/h-system.h
164 -@@ -104,17 +104,6 @@
165 -
166 - #ifdef SET_UID
167 -
168 --# ifdef USG
169 --# include <string.h>
170 --# else
171 --# include <strings.h>
172 --extern char *strstr();
173 --extern char *strchr();
174 --extern char *strrchr();
175 --# endif
176 --
177 --#else
178 --
179 - # include <string.h>
180 -
181 - #endif
182
183 diff --git a/games-roguelike/mangband/mangband-1.1.3.ebuild b/games-roguelike/mangband/mangband-1.1.3.ebuild
184 deleted file mode 100644
185 index 880306d0d6c..00000000000
186 --- a/games-roguelike/mangband/mangband-1.1.3.ebuild
187 +++ /dev/null
188 @@ -1,83 +0,0 @@
189 -# Copyright 1999-2016 Gentoo Foundation
190 -# Distributed under the terms of the GNU General Public License v2
191 -
192 -EAPI=6
193 -inherit eutils flag-o-matic user
194 -
195 -DESCRIPTION="Online multiplayer real-time roguelike game, derived from Angband."
196 -HOMEPAGE="http://www.mangband.org"
197 -SRC_URI="http://www.mangband.org/download/${P}.tar.gz"
198 -
199 -#RESTRICT=nomirror # for ebuild debugging
200 -
201 -LICENSE="Moria"
202 -SLOT="0"
203 -KEYWORDS="~amd64 ~x86"
204 -IUSE="ncurses sdl X"
205 -
206 -# Remove this once we hit MAngband 1.2:
207 -S="${WORKDIR}/${P}"/src
208 -
209 -RDEPEND="
210 - ncurses? ( sys-libs/ncurses:= )
211 - sdl? ( media-libs/libsdl )
212 - X? ( x11-libs/libX11 )"
213 -DEPEND="${RDEPEND}"
214 -
215 -PATCHES=( "${FILESDIR}/${P}-strchr.patch"
216 - "${FILESDIR}/${P}-paths.patch" )
217 -
218 -MY_DATADIR=/usr/share/"${PN}"
219 -MY_STATEDIR=/var/lib/"${PN}"
220 -MY_SYSCONFDIR=/etc
221 -
222 -src_configure() {
223 - append-cflags "-DDEFAULT_PATH='\"${MY_DATADIR}\"' -DDEFAULT_PATH_W='\"${MY_STATEDIR}\"'"
224 - econf \
225 - $(use_with ncurses gcu) \
226 - $(use_with X x11) \
227 - $(use_with sdl)
228 -}
229 -
230 -pkg_setup() {
231 - # mangband server uses own user/group:
232 - enewgroup mangband
233 - enewuser mangband -1 -1 -1 "mangband"
234 -}
235 -
236 -src_install() {
237 -# Newer versions of MAngband have "make install", so we could use..
238 -# emake DESTDIR="${D}" install
239 -# dodoc NEWS README INSTALL AUTHORS
240 -#..but not yet
241 -
242 - dobin mangband mangclient
243 -
244 - # Read-only data
245 - insinto "${MY_DATADIR}"
246 - doins -r "${WORKDIR}/${P}"/lib/{edit,file,help,text,xtra,user}
247 -
248 - # Server config
249 - insinto "${MY_SYSCONFDIR}"
250 - doins "${WORKDIR}/${P}"/mangband.cfg
251 -
252 - # Read-write data
253 - insinto "${MY_STATEDIR}"
254 - doins -r "${WORKDIR}/${P}"/lib/{data,save,user}
255 -
256 - fowners -R mangband:mangband "${MY_STATEDIR}"/{data,save,user}
257 - fperms -R 2664 "${MY_STATEDIR}"/{data,save,user}
258 - fperms 2775 "${MY_STATEDIR}"/{data,save,user}
259 -
260 - # Docs
261 - #dodoc ${WORKDIR}/${P}/LICENSE
262 -}
263 -
264 -pkg_postinst() {
265 - echo
266 - elog "Make sure LibDir is either unset in ~/.mangrc or points to"
267 - elog " ${MY_DATADIR} for 'mangclient' to pick it up."
268 - elog "Server binary is called 'mangband', and must be run under user"
269 - elog " mangband, i.e. 'sudo -u mangband mangband' "
270 - echo
271 -}
272
273 diff --git a/games-roguelike/mangband/metadata.xml b/games-roguelike/mangband/metadata.xml
274 deleted file mode 100644
275 index 585b0dc75dd..00000000000
276 --- a/games-roguelike/mangband/metadata.xml
277 +++ /dev/null
278 @@ -1,5 +0,0 @@
279 -<?xml version="1.0" encoding="UTF-8"?>
280 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
281 -<pkgmetadata>
282 - <!-- maintainer-needed -->
283 - </pkgmetadata>
284
285 diff --git a/profiles/package.mask b/profiles/package.mask
286 index f765643f452..69c5ec3999d 100644
287 --- a/profiles/package.mask
288 +++ b/profiles/package.mask
289 @@ -236,10 +236,6 @@ app-portage/gentoolkit-dev
290 # month.
291 app-portage/gs-pypi
292
293 -# Pacho Ramos <pacho@g.o> (11 Nov 2018)
294 -# Fails at runtime (#661746). Removal in a month.
295 -games-roguelike/mangband
296 -
297 # Pacho Ramos <pacho@g.o> (11 Nov 2018)
298 # Fails to build (#662000), not compatible with kernel-4, use kernel driver rtsx_pci
299 # instead. Removal in a month.