1 |
commit: 7f96879d0ec152ef151d0555d68be3d7c8641a19 |
2 |
Author: Stefan Strogin <steils <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 25 11:36:59 2020 +0000 |
4 |
Commit: Stefan Strogin <steils <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 25 11:41:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f96879d |
7 |
|
8 |
games-roguelike/nethack: drop old 3.6.0-r3 |
9 |
|
10 |
Package-Manager: Portage-2.3.85, Repoman-2.3.20 |
11 |
Signed-off-by: Stefan Strogin <steils <AT> gentoo.org> |
12 |
|
13 |
games-roguelike/nethack/Manifest | 1 - |
14 |
.../nethack/files/nethack-3.6.0-recover.patch | 110 ------------ |
15 |
.../nethack/files/nethack-3.6.0-x11-color.patch | 186 --------------------- |
16 |
games-roguelike/nethack/metadata.xml | 3 - |
17 |
games-roguelike/nethack/nethack-3.6.0-r3.ebuild | 142 ---------------- |
18 |
5 files changed, 442 deletions(-) |
19 |
|
20 |
diff --git a/games-roguelike/nethack/Manifest b/games-roguelike/nethack/Manifest |
21 |
index a95fbc6ee0b..66a24f403d3 100644 |
22 |
--- a/games-roguelike/nethack/Manifest |
23 |
+++ b/games-roguelike/nethack/Manifest |
24 |
@@ -1,4 +1,3 @@ |
25 |
DIST nethack-3.6.3.tar.gz 5568657 BLAKE2B f0aa12a27fdf5005f57dcc802af88939b8460cfcfea3dc4d262b15a2807376ed434233dfa85ae0bfd60e50ad5a51ff4b060b5063e393d5859bac1b98364b5359 SHA512 38bc6140b12188397539f28528dd8e34364fb7efeb42dbe36d86fea6cc473e292b7f47fba01db19cf7641414dee86092e33deb3b074afa0e8b811e71be71e1d1 |
26 |
DIST nethack-3.6.4.tar.gz 5573777 BLAKE2B 4e5a48bbf521406f17bc699643dd9f9d912381cc91ab2228affc6f54ad2b84ea7c946ab2d5936c274752a36920440d34001b13f28ce4c8f35844300d596086a7 SHA512 c951f939d50027b4468ebd2e32f79771e696035df0918b814bf02899f5c1e89d462ebc3f63155c23f5c627e66ca74244512d666b102c380242df1500a2c0afa9 |
27 |
-DIST nethack-360-src.tgz 4261282 BLAKE2B 7be22b8bdc7b5124418fa904aa3776d77440f67ec18782b878e037b989a18092ed88ca192224c7bc1eaa3cb438823188035c3e6d2aa85d13a7aa1e86c8527d32 SHA512 92370a3c60a4f6861b9c0f1e1320fc23d91cedc1615d0d09e06a0ee3e13c9c8c0cd931389bfd7a25845ed07ef966d19d9e46e77ae07084a941685dc67f49c813 |
28 |
DIST nethack-361-src.tgz 4640769 BLAKE2B 3793a753e4012df64335e7e7ec60284de206012d5bb5d30a7ccfb458e456818f30dd0b4bfa9c41b1691bd01ee6aec2e44b57327586f0c9d76a573bf4c9bb00b1 SHA512 bd6e36c163f0d85e1ab1fc659464696b5a02c3864a800ad47e047fdc4a35fff4ef7dd28a9b071fa46f7f67fa45c97fdc77bc1f2bdbad80cc02950d73731d9c30 |
29 |
|
30 |
diff --git a/games-roguelike/nethack/files/nethack-3.6.0-recover.patch b/games-roguelike/nethack/files/nethack-3.6.0-recover.patch |
31 |
deleted file mode 100644 |
32 |
index c7e8ab3dca0..00000000000 |
33 |
--- a/games-roguelike/nethack/files/nethack-3.6.0-recover.patch |
34 |
+++ /dev/null |
35 |
@@ -1,110 +0,0 @@ |
36 |
-From c15cf56e61c908ce756d698a8afa3064030761b3 Mon Sep 17 00:00:00 2001 |
37 |
-From: Luis Ressel <aranea@×××××.de> |
38 |
-Date: Fri, 18 Dec 2015 23:16:56 +0100 |
39 |
-Subject: [PATCH] doc: Rename recover to recover-nethack |
40 |
- |
41 |
---- |
42 |
- doc/recover.6 | 30 +++++++++++++++--------------- |
43 |
- 1 file changed, 15 insertions(+), 15 deletions(-) |
44 |
- |
45 |
-diff --git a/doc/recover.6 b/doc/recover.6 |
46 |
-index 4c9f509..edd05e3 100644 |
47 |
---- a/doc/recover.6 |
48 |
-+++ b/doc/recover.6 |
49 |
-@@ -1,10 +1,10 @@ |
50 |
--.TH RECOVER 6 "9 January 1993" |
51 |
-+.TH RECOVER-NETHACK 6 "9 January 1993" |
52 |
- .\" NetHack 3.6 recover.6 $NHDT-Date: 1432512786 2015/05/25 00:13:06 $ $NHDT-Branch: master $:$NHDT-Revision: 1.6 $ |
53 |
- .UC 4 |
54 |
- .SH NAME |
55 |
--recover \- recover a NetHack game interrupted by disaster |
56 |
-+recover-nethack \- recover a NetHack game interrupted by disaster |
57 |
- .SH SYNOPSIS |
58 |
--.B recover |
59 |
-+.B recover-nethack |
60 |
- [ |
61 |
- .B \-d |
62 |
- .I directory |
63 |
-@@ -22,7 +22,7 @@ so such games can be recovered at the point of the last level change. |
64 |
- The |
65 |
- .I base |
66 |
- options tell |
67 |
--.I recover |
68 |
-+.I recover-nethack |
69 |
- which files to process. |
70 |
- Each base option specifies recovery of a separate game. |
71 |
- .PP |
72 |
-@@ -72,47 +72,47 @@ by a user number to avoid conflicts, |
73 |
- or "xlock" if the number of concurrent players is being limited. |
74 |
- It may be necessary to look in the playground to find the correct |
75 |
- base name of the interrupted game. |
76 |
--.I recover |
77 |
-+.I recover-nethack |
78 |
- will transform these level files into a save file of the same name as |
79 |
- .I nethack |
80 |
- would have used. |
81 |
- .PP |
82 |
- Since |
83 |
--.I recover |
84 |
-+.I recover-nethack |
85 |
- must be able to read and delete files from the playground |
86 |
- and create files in the save directory, |
87 |
- it has interesting interactions with game security. |
88 |
- Giving ordinary players access to |
89 |
--.I recover |
90 |
-+.I recover-nethack |
91 |
- through setuid or setgid is tantamount to leaving the playground |
92 |
- world-writable, |
93 |
- with respect to both cheating and messing up other players. |
94 |
- For a single-user system, this of course does not change anything, |
95 |
- so some of the microcomputer ports install |
96 |
--.I recover |
97 |
-+.I recover-nethack |
98 |
- by default. |
99 |
- .PP |
100 |
- For a multi-user system, |
101 |
- the game administrator may want to arrange for all .0 files in the |
102 |
--playground to be fed to recover when the host machine boots, |
103 |
-+playground to be fed to recover-nethack when the host machine boots, |
104 |
- and handle game crashes individually. |
105 |
- If the user population is sufficiently trustworthy, |
106 |
--.I recover |
107 |
-+.I recover-nethack |
108 |
- can be installed with the same permissions the |
109 |
- .I nethack |
110 |
- executable has. |
111 |
- In either case, |
112 |
--.I recover |
113 |
-+.I recover-nethack |
114 |
- is easily compiled from the distribution utility directory. |
115 |
- .SH NOTES |
116 |
- .PP |
117 |
- Like |
118 |
- .I nethack |
119 |
- itself, |
120 |
--.I recover |
121 |
-+.I recover-nethack |
122 |
- will overwrite existing savefiles of the same name. |
123 |
- Savefiles created by |
124 |
--.I recover |
125 |
-+.I recover-nethack |
126 |
- are uncompressed; |
127 |
- they may be compressed afterwards if desired, |
128 |
- but even a compression-using |
129 |
-@@ -122,11 +122,11 @@ will find them in the uncompressed form. |
130 |
- nethack(6) |
131 |
- .SH BUGS |
132 |
- .PP |
133 |
--.I recover |
134 |
-+.I recover-nethack |
135 |
- makes no attempt to find out if a base name specifies a game in progress. |
136 |
- If multiple machines share a playground, this would be impossible to |
137 |
- determine. |
138 |
- .PP |
139 |
--.I recover |
140 |
-+.I recover-nethack |
141 |
- should be taught to use the nethack playground locking mechanism to |
142 |
- avoid conflicts. |
143 |
--- |
144 |
-2.6.4 |
145 |
- |
146 |
|
147 |
diff --git a/games-roguelike/nethack/files/nethack-3.6.0-x11-color.patch b/games-roguelike/nethack/files/nethack-3.6.0-x11-color.patch |
148 |
deleted file mode 100644 |
149 |
index d34ca029d51..00000000000 |
150 |
--- a/games-roguelike/nethack/files/nethack-3.6.0-x11-color.patch |
151 |
+++ /dev/null |
152 |
@@ -1,186 +0,0 @@ |
153 |
-From f92bf2b495450d323e157eb41130c79a3d369239 Mon Sep 17 00:00:00 2001 |
154 |
-From: PatR <rankin@×××××××.org> |
155 |
-Date: Mon, 8 Feb 2016 19:01:26 -0800 |
156 |
-Subject: [PATCH] fix #H4237 - color ignored for X11 text map |
157 |
- |
158 |
-Color was only being tracked for locations that had the pile of |
159 |
-objects flag set. And hilite_pile made a monster on a pile take |
160 |
-on the color of the top object of the pile. |
161 |
- |
162 |
-This restores the tracking of color for the whole map, and makes |
163 |
-highlighted piles be drawn in inverse like highligted pets. The |
164 |
-drawing routine doesn't know the difference (but could tell, if |
165 |
-necessary, by testing whether the glyph is an object or a monster). |
166 |
- |
167 |
-Also, variables 'inbuf', 'inptr', and 'incount' were global; limit |
168 |
-their scope to winmap.c. |
169 |
---- |
170 |
- win/X11/winmap.c | 68 +++++++++++++++++++++++++++----------------------------- |
171 |
- 1 file changed, 33 insertions(+), 35 deletions(-) |
172 |
- |
173 |
-diff --git a/win/X11/winmap.c b/win/X11/winmap.c |
174 |
-index 93f5dd6..523e13d 100644 |
175 |
---- a/win/X11/winmap.c |
176 |
-+++ b/win/X11/winmap.c |
177 |
-@@ -102,6 +102,7 @@ int bkglyph UNUSED; |
178 |
- int color, och; |
179 |
- unsigned special; |
180 |
- #ifdef TEXTCOLOR |
181 |
-+ int colordif; |
182 |
- register unsigned char *co_ptr; |
183 |
- #endif |
184 |
- |
185 |
-@@ -116,24 +117,22 @@ int bkglyph UNUSED; |
186 |
- |
187 |
- /* Only update if we need to. */ |
188 |
- ch_ptr = &map_info->text_map.text[y][x]; |
189 |
-- |
190 |
--#ifdef TEXTCOLOR |
191 |
-- co_ptr = &map_info->text_map.colors[y][x]; |
192 |
-- if (*ch_ptr != ch || *co_ptr != color) |
193 |
--#else |
194 |
-- if (*ch_ptr != ch) |
195 |
--#endif |
196 |
-- { |
197 |
-+ if (*ch_ptr != ch) { |
198 |
- *ch_ptr = ch; |
199 |
-+ if (!map_info->is_tile) |
200 |
-+ update_bbox = TRUE; |
201 |
-+ } |
202 |
- #ifdef TEXTCOLOR |
203 |
-- if ((special & MG_PET) && iflags.hilite_pet) |
204 |
-- color += CLR_MAX; |
205 |
-- if ((special & MG_OBJPILE) && iflags.hilite_pile) |
206 |
-- *co_ptr = color; |
207 |
--#endif |
208 |
-+ co_ptr = &map_info->text_map.colors[y][x]; |
209 |
-+ colordif = (((special & MG_PET) && iflags.hilite_pet) |
210 |
-+ || ((special & MG_OBJPILE) && iflags.hilite_pile)) |
211 |
-+ ? CLR_MAX : 0; |
212 |
-+ if (*co_ptr != (uchar) (color + colordif)) { |
213 |
-+ *co_ptr = (uchar) (color + colordif); |
214 |
- if (!map_info->is_tile) |
215 |
- update_bbox = TRUE; |
216 |
- } |
217 |
-+#endif |
218 |
- } |
219 |
- |
220 |
- if (update_bbox) { /* update row bbox */ |
221 |
-@@ -844,7 +843,8 @@ Font font; |
222 |
- set_color_gc(CLR_BRIGHT_CYAN, XtNbright_cyan); |
223 |
- set_color_gc(CLR_WHITE, XtNwhite); |
224 |
- #else |
225 |
-- set_gc(wp->w, font, XtNforeground, bgpixel, &map_info->text_map.copy_gc, |
226 |
-+ set_gc(wp->w, font, XtNforeground, bgpixel, |
227 |
-+ &map_info->text_map.copy_gc, |
228 |
- &map_info->text_map.inv_copy_gc); |
229 |
- #endif |
230 |
- } |
231 |
-@@ -943,17 +943,17 @@ struct xwindow *wp; |
232 |
- |
233 |
- map_all_stone(map_info); |
234 |
- (void) memset((genericptr_t) map_info->text_map.text, ' ', |
235 |
-- sizeof(map_info->text_map.text)); |
236 |
-+ sizeof map_info->text_map.text); |
237 |
- #ifdef TEXTCOLOR |
238 |
- (void) memset((genericptr_t) map_info->text_map.colors, NO_COLOR, |
239 |
-- sizeof(map_info->text_map.colors)); |
240 |
-+ sizeof map_info->text_map.colors); |
241 |
- #endif |
242 |
- |
243 |
- /* force a full update */ |
244 |
- (void) memset((genericptr_t) map_info->t_start, (char) 0, |
245 |
-- sizeof(map_info->t_start)); |
246 |
-+ sizeof map_info->t_start); |
247 |
- (void) memset((genericptr_t) map_info->t_stop, (char) COLNO - 1, |
248 |
-- sizeof(map_info->t_stop)); |
249 |
-+ sizeof map_info->t_stop); |
250 |
- display_map_window(wp); |
251 |
- } |
252 |
- |
253 |
-@@ -978,8 +978,8 @@ struct xwindow *wp; |
254 |
- #ifdef VERBOSE |
255 |
- printf("Font information:\n"); |
256 |
- printf("fid = %ld, direction = %d\n", fs->fid, fs->direction); |
257 |
-- printf("first = %d, last = %d\n", fs->min_char_or_byte2, |
258 |
-- fs->max_char_or_byte2); |
259 |
-+ printf("first = %d, last = %d\n", |
260 |
-+ fs->min_char_or_byte2, fs->max_char_or_byte2); |
261 |
- printf("all chars exist? %s\n", fs->all_chars_exist ? "yes" : "no"); |
262 |
- printf("min_bounds:lb=%d rb=%d width=%d asc=%d des=%d attr=%d\n", |
263 |
- fs->min_bounds.lbearing, fs->min_bounds.rbearing, |
264 |
-@@ -990,8 +990,8 @@ struct xwindow *wp; |
265 |
- fs->max_bounds.width, fs->max_bounds.ascent, |
266 |
- fs->max_bounds.descent, fs->max_bounds.attributes); |
267 |
- printf("per_char = 0x%lx\n", (unsigned long) fs->per_char); |
268 |
-- printf("Text: (max) width = %d, height = %d\n", text_map->square_width, |
269 |
-- text_map->square_height); |
270 |
-+ printf("Text: (max) width = %d, height = %d\n", |
271 |
-+ text_map->square_width, text_map->square_height); |
272 |
- #endif |
273 |
- |
274 |
- if (fs->min_bounds.width != fs->max_bounds.width) |
275 |
-@@ -1002,9 +1002,9 @@ struct xwindow *wp; |
276 |
- * keyhit buffer |
277 |
- */ |
278 |
- #define INBUF_SIZE 64 |
279 |
--int inbuf[INBUF_SIZE]; |
280 |
--int incount = 0; |
281 |
--int inptr = 0; /* points to valid data */ |
282 |
-+static int inbuf[INBUF_SIZE]; |
283 |
-+static int incount = 0; |
284 |
-+static int inptr = 0; /* points to valid data */ |
285 |
- |
286 |
- /* |
287 |
- * Keyboard and button event handler for map window. |
288 |
-@@ -1249,8 +1249,8 @@ boolean inverted; |
289 |
- } |
290 |
- |
291 |
- #ifdef VERBOSE_UPDATE |
292 |
-- printf("update: [0x%x] %d %d %d %d\n", (int) wp->w, start_row, stop_row, |
293 |
-- start_col, stop_col); |
294 |
-+ printf("update: [0x%x] %d %d %d %d\n", |
295 |
-+ (int) wp->w, start_row, stop_row, start_col, stop_col); |
296 |
- #endif |
297 |
- win_start_row = start_row; |
298 |
- win_start_col = start_col; |
299 |
-@@ -1273,8 +1273,8 @@ boolean inverted; |
300 |
- src_y = (tile / TILES_PER_ROW) * tile_height; |
301 |
- XCopyArea(dpy, tile_pixmap, XtWindow(wp->w), |
302 |
- tile_map->black_gc, /* no grapics_expose */ |
303 |
-- src_x, src_y, tile_width, tile_height, dest_x, |
304 |
-- dest_y); |
305 |
-+ src_x, src_y, tile_width, tile_height, |
306 |
-+ dest_x, dest_y); |
307 |
- |
308 |
- if (glyph_is_pet(glyph) && iflags.hilite_pet) { |
309 |
- /* draw pet annotation (a heart) */ |
310 |
-@@ -1412,10 +1412,8 @@ Dimension cols, rows; |
311 |
- } |
312 |
- |
313 |
- num_args = 0; |
314 |
-- XtSetArg(args[num_args], XtNwidth, wp->pixel_width); |
315 |
-- num_args++; |
316 |
-- XtSetArg(args[num_args], XtNheight, wp->pixel_height); |
317 |
-- num_args++; |
318 |
-+ XtSetArg(args[num_args], XtNwidth, wp->pixel_width); num_args++; |
319 |
-+ XtSetArg(args[num_args], XtNheight, wp->pixel_height); num_args++; |
320 |
- XtSetValues(wp->w, args, num_args); |
321 |
- } |
322 |
- |
323 |
-@@ -1426,10 +1424,10 @@ struct xwindow *wp; |
324 |
- struct map_info_t *map_info = wp->map_information; |
325 |
- struct text_map_info_t *text_map = &map_info->text_map; |
326 |
- |
327 |
-- (void) memset((genericptr_t) text_map->text, ' ', sizeof(text_map->text)); |
328 |
-+ (void) memset((genericptr_t) text_map->text, ' ', sizeof text_map->text); |
329 |
- #ifdef TEXTCOLOR |
330 |
- (void) memset((genericptr_t) text_map->colors, NO_COLOR, |
331 |
-- sizeof(text_map->colors)); |
332 |
-+ sizeof text_map->colors); |
333 |
- #endif |
334 |
- |
335 |
- get_char_info(wp); |
336 |
--- |
337 |
-2.7.1 |
338 |
- |
339 |
|
340 |
diff --git a/games-roguelike/nethack/metadata.xml b/games-roguelike/nethack/metadata.xml |
341 |
index 6b590935388..580294582a2 100644 |
342 |
--- a/games-roguelike/nethack/metadata.xml |
343 |
+++ b/games-roguelike/nethack/metadata.xml |
344 |
@@ -8,7 +8,4 @@ |
345 |
<upstream> |
346 |
<remote-id type="sourceforge">nethack</remote-id> |
347 |
</upstream> |
348 |
- <use> |
349 |
- <flag name="experimental">Enable experimental features (showscore and status_hilite)</flag> |
350 |
- </use> |
351 |
</pkgmetadata> |
352 |
|
353 |
diff --git a/games-roguelike/nethack/nethack-3.6.0-r3.ebuild b/games-roguelike/nethack/nethack-3.6.0-r3.ebuild |
354 |
deleted file mode 100644 |
355 |
index 0d5d90745b7..00000000000 |
356 |
--- a/games-roguelike/nethack/nethack-3.6.0-r3.ebuild |
357 |
+++ /dev/null |
358 |
@@ -1,142 +0,0 @@ |
359 |
-# Copyright 1999-2019 Gentoo Authors |
360 |
-# Distributed under the terms of the GNU General Public License v2 |
361 |
- |
362 |
-EAPI=6 |
363 |
-inherit eutils toolchain-funcs flag-o-matic |
364 |
- |
365 |
-MY_PV=${PV//.} |
366 |
-DESCRIPTION="The ultimate old-school single player dungeon exploration game" |
367 |
-HOMEPAGE="https://www.nethack.org/" |
368 |
-SRC_URI="mirror://sourceforge/nethack/${PN}-${MY_PV}-src.tgz" |
369 |
- |
370 |
-LICENSE="nethack" |
371 |
-SLOT="0" |
372 |
-KEYWORDS="~amd64 ~arm ~hppa ~x86" |
373 |
-IUSE="experimental X" |
374 |
- |
375 |
-RDEPEND="acct-group/gamestat |
376 |
- sys-libs/ncurses:0= |
377 |
- X? ( |
378 |
- x11-libs/libXaw |
379 |
- x11-libs/libXpm |
380 |
- x11-libs/libXt |
381 |
- )" |
382 |
-DEPEND="${RDEPEND} |
383 |
- virtual/pkgconfig |
384 |
- X? ( |
385 |
- x11-base/xorg-proto |
386 |
- x11-apps/bdftopcf |
387 |
- >=x11-apps/mkfontscale-1.2.0 |
388 |
- )" |
389 |
- |
390 |
-BINDIR="/usr/bin" |
391 |
-STATEDIR="/var/games/${PN}" |
392 |
- |
393 |
-NETHACK_GROUP="gamestat" |
394 |
- |
395 |
-pkg_setup() { |
396 |
- HACKDIR="/usr/$(get_libdir)/${PN}" |
397 |
-} |
398 |
- |
399 |
-src_prepare() { |
400 |
- eapply "${FILESDIR}/${P}-recover.patch" |
401 |
- eapply "${FILESDIR}/${P}-x11-color.patch" |
402 |
- eapply_user |
403 |
- |
404 |
- cp "${FILESDIR}/${P}-hint-$(usex X x11 tty)" hint || die "Failed to copy hint file" |
405 |
- sys/unix/setup.sh hint || die "Failed to run setup.sh" |
406 |
-} |
407 |
- |
408 |
-src_compile() { |
409 |
- append-cflags -I../include -DDLB -DSECURE -DLINUX -DTIMED_DELAY -DVISION_TABLES |
410 |
- append-cflags '-DCOMPRESS=\"/bin/gzip\"' '-DCOMPRESS_EXTENSION=\".gz\"' |
411 |
- append-cflags "-DHACKDIR=\\\"${HACKDIR}\\\"" "-DVAR_PLAYGROUND=\\\"${STATEDIR}\\\"" |
412 |
- append-cflags "-DDEF_PAGER=\\\"${PAGER}\\\"" |
413 |
- append-cflags -DSYSCF "-DSYSCF_FILE=\\\"/etc/nethack.sysconf\\\"" |
414 |
- |
415 |
- use X && append-cflags -DX11_GRAPHICS -DUSE_XPM |
416 |
- use experimental && |
417 |
- append-cflags -DSTATUS_VIA_WINDOWPORT -DSTATUS_HILITES -DSCORE_ON_BOTL |
418 |
- |
419 |
- makeopts=( |
420 |
- CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}" |
421 |
- WINTTYLIB="$($(tc-getPKG_CONFIG) --libs ncurses)" |
422 |
- HACKDIR="${HACKDIR}" INSTDIR="${D}/${HACKDIR}" |
423 |
- SHELLDIR="${D}/${BINDIR}" VARDIR="${D}/${STATEDIR}" |
424 |
- ) |
425 |
- |
426 |
- emake "${makeopts[@]}" nethack recover Guidebook spec_levs |
427 |
- |
428 |
- # Upstream still has some parallel compilation bugs |
429 |
- emake -j1 "${makeopts[@]}" all |
430 |
-} |
431 |
- |
432 |
-src_install() { |
433 |
- emake "${makeopts[@]}" install |
434 |
- |
435 |
- exeinto "${BINDIR}" |
436 |
- newexe util/recover recover-nethack |
437 |
- rm "${D}/${HACKDIR}/recover" || die "Failed to remove HACKDIR/recover" |
438 |
- |
439 |
- doman doc/nethack.6 |
440 |
- newman doc/recover.6 recover-nethack.6 |
441 |
- dodoc doc/Guidebook.txt |
442 |
- |
443 |
- insinto /etc |
444 |
- newins sys/unix/sysconf nethack.sysconf |
445 |
- |
446 |
- insinto /etc/skel |
447 |
- newins "${FILESDIR}/${P}-nethackrc" .nethackrc |
448 |
- |
449 |
- if use X ; then |
450 |
- cd "${S}/win/X11" || die "Failed to enter win/X11 directory" |
451 |
- |
452 |
- # copy nethack x application defaults |
453 |
- insinto /etc/X11/app-defaults |
454 |
- newins NetHack.ad NetHack |
455 |
- rm "${D}/${HACKDIR}/NetHack.ad" || die "Failed to remove NetHack.ad" |
456 |
- |
457 |
- newicon nh_icon.xpm nethack.xpm |
458 |
- make_desktop_entry ${PN} Nethack |
459 |
- |
460 |
- # install nethack fonts |
461 |
- bdftopcf -o nh10.pcf nh10.bdf || die "Converting fonts failed" |
462 |
- bdftopcf -o ibm.pcf ibm.bdf || die "Converting fonts failed" |
463 |
- insinto "${HACKDIR}/fonts" |
464 |
- doins *.pcf |
465 |
- cd "${D}/${HACKDIR}/fonts" || die "Failed to enter fonts directory" |
466 |
- mkfontdir || die "The action mkfontdir ${HACKDIR}/fonts failed" |
467 |
- fi |
468 |
- |
469 |
- rm -r "${D}/${STATEDIR}" || die "Failed to clean STATEDIR" |
470 |
- keepdir "${STATEDIR}/save" |
471 |
- |
472 |
- fowners -R "root:${NETHACK_GROUP}" "${STATEDIR}" |
473 |
- fperms 770 "${STATEDIR}" "${STATEDIR}/save" |
474 |
- |
475 |
- fowners "root:${NETHACK_GROUP}" "${HACKDIR}/nethack" |
476 |
- fperms g+s "${HACKDIR}/nethack" |
477 |
-} |
478 |
- |
479 |
-pkg_postinst() { |
480 |
- cd "${ROOT}/${STATEDIR}" || die "Failed to enter ${STATEDIR} directory" |
481 |
- |
482 |
- touch logfile perm record xlogfile || die "Failed to create log files" |
483 |
- |
484 |
- chown -R root:"${NETHACK_GROUP}" . && |
485 |
- chmod -R 660 . && |
486 |
- chmod 770 . save || |
487 |
- die "Adjustment of file permissions in ${ROOT}/${STATEDIR} failed" |
488 |
- |
489 |
- touch -c bones* save/* # non-critical |
490 |
- |
491 |
- elog "A minimal default .nethackrc has been placed in /etc/skel/" |
492 |
- elog "The sysconf file is at /etc/nethack.sysconf" |
493 |
- |
494 |
- if has_version "<${CATEGORY}/${PN}-3.6.0" ; then |
495 |
- elog |
496 |
- elog "Nethack 3.6 includes many new features." |
497 |
- elog "You might want to review your options and local patchset." |
498 |
- elog "Have a look at http://www.nethack.org/v360/release.html" |
499 |
- fi |
500 |
-} |