i just merged nethack-3.4.3-r1 and found some files,which shouldn't be where they are: # file /usr/share/games/nethack/nethack /usr/share/games/nethack/nethack: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.6, dynamically linked (uses shared libs), stripped according to the FHS plattform dependant data in /usr/share is not permitted. pls update the ebuild to correct this. (the simplest solution would be moving it to /usr/lib)
You should definitely feel free to attach a patch to address that.
/usr/lib is generally not used for games
what's wrong with /usr/lib/games/nethack? looks perfectly nice to me. debian also does it this way.
see comment #1
hmm, i just checked, and we're not Debian; fancy that use the ${GAMES_LIBDIR} variable for the base
Created attachment 62512 [details] nethack-3.4.3-r1.ebuild i dislike nethack so please test this ebuild for us
the ebuild works for me but i think the main nethack data file currently /usr/share/games/nethack/nhdat is also plattform dependant as the datafile "compiler" seems to write raw C structs to the file. i think the best idea whould be moving the whole nethack dir to ${GAMES_LIBDIR} and installing the x11 tiles in some location like /usr/share/pixmaps/nethack/ ? it's weekend now, so i am short of time per se, i'll have a look when having more time (i also have some exams ATM).
Created attachment 62662 [details] my updated nethack ebuild - sets HACKDIR to ${GAMES_LIBDIR}/nethack. - installs x11 tiles and pixmaps to /usr/share/pixmaps/nethack - installs fonts to /usr/share/fonts/nethack - updates /etc/X11/app-defaults/NetHack to make nethack find the x11 data.
I don't think Nethack's tiles properly belong in /usr/share/pixmaps; that's where icons go, not tilesets.
IMO /usr/share/pixmaps would be called /usr/share/icons if it was meant for icons only. also the tiles go to a pixmaps subdir and aren't directly "visible" under pixmaps. is there any reference material on that topic?
I think /usr/share/pixmaps/nethack is fine.
Okay, I've been informed that installing tiles into /uxr/share/pixmaps is dumb; none of the other games ebuilds sticks tiles there, just icons. Consider this a WONTFIX on my part [even though I'm not a Gentoo dev].
As of -r4, the nethack binary is no longer in /usr/share. nhdat still is, though; I haven't decided yet how to handle that.
Fixed in nethack-3.4.3-r5.