"Nether Earth was the very first real time strategy game. It worked on a SPECTRUM machine, and only needed 48KB of RAM to work!! It has all the tipical elements of strategy games: resources, factories, combat units, etc." (from http://braingames.getput.com/nether/" Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 29434 [details] netherearth-0.51.ebuild
Created attachment 29435 [details, diff] netherearth-0.51-gentoo-paths.patch A patch to modify the config and savegame paths and also some fopen() permissions
Suggested category: games-strategy
Not liking the non-versioning of the archive from upstream. I've emailed the author and asked him to rename the archive. I'll wait a bit and see if he fixes things. Some comments: Use the header from header.txt There's a command-line option to unzip to rename files. Whack the .db file in src_unpack, not src_install No need for a loop for the maps models sound textures stuff. just pass a big list to doins
Created attachment 39707 [details] netherearth-0.51.ebuild >> Use the header from header.txt Err... what's different from that header? I don't see any difference. >> There's a command-line option to unzip to rename files. Yes, unzip has such a flag but I didn't know what unpack uses. What are the unpack dependencies? Does it use app-arch/unzip? >> Whack the .db file in src_unpack, not src_install Done. >> No need for a loop for the maps models sound textures stuff. just pass a big list to doins Sorry, but I don't understand what you mean. Doesn't doins have to be preceeded by an insinto? Note: I haven't tested the new ebuild, since I don't have access to my computer. but it should work. If you want further modiffications then please post your comments (mainly to the issues above).
Created attachment 41305 [details] netherearth-0.51.ebuild Finally fixed the header... took me long enough to notice ;)
ebuild works fine for me
Created attachment 51598 [details] netherearth-0.51.ebuild Updated header and added "local f" to src_unpack
Version 0.52 is apparently out... didn't have time to check it out... it won't be soon though...
Too bad the website is offline - I really wanted to play this game tonight.
Hm, this is what I get during the compilation, even if I add -fpermissive to CXXFLAGS, as suggested by g++: g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -fpermissive -c mainmenu.cpp -o mainmenu.o main.cpp:281:1: warning: no newline at end of file g++ -march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -fpermissive -c maps.cpp -o maps.o In file included from maps.cpp:13: list.h: In member function `T* List<T>::GetRandom()': list.h:297: warning: there are no arguments to `rand' that depend on a template parameter, so a declaration of `rand' must be available list.h:297: error: `RAND_MAX' undeclared (first use this function) list.h:297: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [maps.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: games-strategy/netherearth-0.51 failed. !!! Function games_src_compile, Line 164, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. # emerge --info Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11.3 i686) ================================================================= System uname: 2.6.11.3 i686 Intel(R) Celeron(R) CPU 2.60GHz Gentoo Base System version 1.6.12 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-lang/python: 2.1.3-r1, 2.2.3-r5, 2.3.5, 2.4.1 sys-apps/sandbox: 1.2.5 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden -fpermissive" DISTDIR="/usr/gentoo/distfiles" FEATURES="autoconfig ccache collision-protect cvs digest distlocks sandbox sfperms sign strict userpriv" GENTOO_MIRRORS="http://mirror.gentoo.sk/pub ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://ftp.easynet.nl/mirror/gentoo" LC_ALL="sk_SK.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/gentoo/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/gentoo/portage" PORTDIR_OVERLAY="/usr/gentoo/overlay" SYNC="cvs://ticho@cvs.gentoo.org:/var/cvsroot" USE="x86 X aalib adns alsa apache2 apm avi berkdb bitmap-fonts bluetooth cdr crypt curl divx4linux eds emboss encode esd faad fam ffmpeg flac font-server foomaticdb gd gdbm gif gnutls gphoto2 gtk gtk2 guile icecast imagemagick imlib ipv6 java jpeg junit libg++ libwww mad mailwrapper mbox mikmod mmx mozilla moznocompose moznoirc moznomail moznoxft mp3 mpeg ncurses nls nntp nptl nvidia ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline real ruby samba sample sasl sdl slang speex sse sse2 ssl tcltk tcpd tetex tiff truetype truetype-fonts type1 type1-fonts unicode vim-with-x vorbis xine xml xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS And... Thanks for those distfiles, Alexandru. :)
Using gcc 3.3.4 this package compiles and runs just fine.
Andrej: try removing -fvisibility-inlines-hidden and see if it works...
http://www.braingames.getput.com/nether/default.asp seems to be available again. Anyone who is interested in this game can download version 0.52 now.
Created attachment 61452 [details] netherearth-0.52.ebuild A working ebuild for 0.52. files/Makefile and files/${P}-linux.patch will follow.
Created attachment 61453 [details] Makefile for sources to compile This makefile was taken from sources-pavel.zip for previous version
Created attachment 61454 [details, diff] netherearth-0.52-linux.patch This patch fixes missing includes which prevented 0.52 from being compiled on linux.
Comment on attachment 61452 [details] netherearth-0.52.ebuild Changing description so that it fits previous ones.
games@, is it ok if I add this package and maintain it in accord(sp?) with first paragraph of your requirements[1]? 1. http://dev.gentoo.org/~vapier/i-wanna-be-in-the-games-herd.html
ebuild comments: unzip the zip file manually and use -LL instead of the mv calls don't make it depend on sed, but do make it depend on unzip dep on virtual/glut inherit games last make the quoting like most of the other games ebuilds fix the "Rename all .MAP files to .map" code to be reasonable error check file io one insinto and one call to doins -r for the game data install rename DEST_DIR to DATA_DIR and move it into src_unpack There is no reason to sed Makefile since that is provided in FILESDIR. Just fix it there.
Created attachment 61527 [details] netherearth-0.52.ebuild Uh, yes, I forgot to mention that the ebuild was more of a proof-of-concept and that final version would be less crude, but it's too late for that now. Noone believes me, right? :) Anyway: > make the quoting like most of the other games ebuilds I don't know what you mean. Can you give me an example please? > error check file io I'm not sure I know what you mean - perhaps adding return code checks to all file manipulating commands? > rename DEST_DIR to DATA_DIR and move it into src_unpack DATA_DIR needs to stay in global scope, because it is also used in src_install(). I'm uploading a new version of ebuild.
> DATA_DIR needs to stay in global scope, because it is also used in src_install(). no it doesn't - portage keeps track of it. >> error check file io > I'm not sure I know what you mean - perhaps adding return code checks to all file manipulating commands? right... the || die thing re: quoting S=.... no quotes. cd "${S}" ... quotes. same for FILEDIR and DATA_DIR
Created attachment 61532 [details] netherearth-0.52.ebuild Fixed the quoting and added some more "|| die" checks
(In reply to comment #23) > Created an attachment (id=61532) [edit] > netherearth-0.52.ebuild > > Fixed the quoting and added some more "|| die" checks Oh and DATA_DIR too.
(In reply to comment #19) > games@, is it ok if I add this package and maintain it in accord(sp?) with first > paragraph of your requirements[1]? > > 1. http://dev.gentoo.org/~vapier/i-wanna-be-in-the-games-herd.html I see no problem with you adding this package. Sorry that we didn't answer this question sooner. There's still some cleanup that needs to be done on this ebuild before committing it, but I'm sure you'll take care of that... =] Don't forget to list yourself as the maintainer in metadata.xml
Thanks, committed after some more clean up - mainly quoting. games@, if you're content with the ebuild, mark this bug as FIXED, otherwise I'm ready to be scolded here. Alexandru, thanks for the initial ebuild.
I added some more error checking to src_install but it generally looked good.