WW2 submarine simulation game that reached next milestone with new version. It is considered by developers still in alpha stage, but being very playable. I can confirm that it is.
Created attachment 71184 [details] dangerdeep-0.1.0.initial.ebuild This is ebuild I made. It works if FETURES="-sandbox" is used. However, It needs fixing to work with sandbox for it which extends my knowledge in that matter. Other thing that I have in there that needs to be fixed (commented out for that reason) is use of system's CFLAGS. It is way over my head and I would kindly request others to look at it. If these two things are done I do not see a reason not to include it in portage ;) Regards.
That ebuild seems to have windows line endings.
Created attachment 71233 [details] Ebuild with unix line breaks (used dos2unix on the ebuild) I'm getting the following error after installing the game with this ebuild: Caught exception: texture "/usr/share/games/textures/background.png" error: read_from_file: failed to load The file is actually located in /usr/share/games/dangerdeep/textures/ Unfortunatly, I don't know the first thing about the "scons" install system, so I'm afraid I can't help to fix it...
Comment to comment #3 It's fortunate that the error You got is easy to fix. I acctualy had it fixed already, just somehow I managed to upload older ebuild than the one I acctually used. What has to be changed is a lline in "src_compile()" function from: installdatadir=${GAMES_DATADIR}/ || die "scons failed" installdatadir=${GAMES_DATADIR}/${PN} || die "scons failed" For now I am trying to figure out how to fix that sandbox issue and if I do then I would upload new ebuild. P.S. As for "windows line breaks" that has to be because I do most of work remotely from the windows machine far far away ;)
Hi. I solved sandox issue :) Taking ideas from bug #98094 I added this "SConsignFile()" (without quotations) to the SConstruct file in the main directory of the game source. I did it manually since patch creation is not my strong side ;) This: print "Compiling for Unix/Posix/Linux Environment" env = Environment(ENV = os.environ) env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL']) libpath = ['/usr/X11R6/lib'] gllibs = ['GL', 'GLU'] sdllibs = ['SDL', 'SDL_image'] I changed into this: print "Compiling for Unix/Posix/Linux Environment" env = Environment(ENV = os.environ) env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL']) SConsignFile() libpath = ['/usr/X11R6/lib'] gllibs = ['GL', 'GLU'] sdllibs = ['SDL', 'SDL_image'] If someone would be kind enough to present it in the patch form it will be nice Only remaining issue is cflags use. Help greatly appreciated
Hi again 1) CCFLAGS issue was easier to solve than one would have thought. All needed to be done is to change this: -e "/CCFLAGS/s:-O2:${CXXFLAGS// /\' ,\'}:g" \ into this: -e "/ccflags/s:-O2:${CXXFLAGS// /\' ,\'}:g" \ 2) I have managed to create a patch to fix sandbox, but for now I gave up on trying to get it applied trough the ebuild as I fail at every attempt to do so as it never seems to find a file to patch. What probably needs fixing is this line: epatch "${FILESDIR}"/${P}-gentoo-compile.patch PATCH: --- SConstruct.orig 2005-10-17 20:45:59.000000000 +0200 +++ SConstruct 2005-10-23 17:28:19.000000000 +0200 @@ -68,6 +68,7 @@ print "Compiling for Unix/Posix/Linux Environment" env = Environment(ENV = os.environ) env.Append(CPPPATH = ['/usr/include/SDL', '/usr/include/GL']) + SConsignFile() libpath = ['/usr/X11R6/lib'] gllibs = ['GL', 'GLU'] sdllibs = ['SDL', 'SDL_image'] p.s. it's almost there ;)
*** This bug has been marked as a duplicate of 130023 ***