here's the ebuild for gemrb
Created attachment 104184 [details] gemrb-0.2.7.ebuild
Created attachment 104185 [details, diff] cflags.patch
Created attachment 104186 [details, diff] sandbox.patch
there is actualy no dependencies...feel free to add them
*** Bug 48942 has been marked as a duplicate of this bug. ***
An ebuild for the latest release, 0.2.8 This has quite a few little tweaks, several in order to allow read-only access to the /usr directory, as required by gentoo-games. The cache directory is moved to /var/cache/gemrb , and a patch to allow saving to home directories is installed.
Created attachment 111412 [details] GemRB 0.2.8 ebuild
Created attachment 111413 [details, diff] Save Home patch for 0.2.8
Created attachment 111415 [details, diff] Save Home patch for 0.2.8
Created attachment 111416 [details] Example GemRB config
Created attachment 111423 [details] GemRB 0.2.8 ebuild Update fixes unnecessary inherit libtool
mabe we should also make an ebuild that use the cvs version because we can't save in baladur's gate 2 in the 0.2.8 version we should or: -make a cvs snapshot and use this one -make the ebuild use the cvs
The save bug was fixed only one day after the 0.2.8 release, so I think it'd be best to just add the patch. I'll work on doing this in a couple of days, the bug is fixed in svn revision 4246: http://gemrb.svn.sourceforge.net/viewvc/gemrb?view=rev&revision=4246 I think using a snapshot or changing the ebuild to use svn would be more trouble than it's worth, not to mention strongly discouraged by the gentoo-games folks. And who are we to argue?
Created attachment 117276 [details, diff] Patch to fix saving in 0.2.8
Created attachment 117277 [details] GemRB 0.2.8 ebuild Hopefully this will fix the saving problems on BG2 - let me know as I don't have the game, so couldn't test it. Note that the patch file is pretty big (larger than the 20k suggested limit), but it'll only be needed for this version, so I think it's the best way.
i tried gemrb 0.2.8 with the fix saving patch: $ gemrb gemrb: error while loading shared libraries: libgemrb_core.so.0: cannot open shared object file: No such file or directory
(In reply to comment #16) > gemrb: error while loading shared libraries: libgemrb_core.so.0: cannot open > shared object file: No such file or directory > It should have installed to the gentoo games default libdir directory, /usr/games/lib/libgemrb_core.so.0 Providing the file is indeed there, ensure the gemrb cfg file reflects this, i.e. with the line: PluginsPath=/usr/games/lib/gemrb/ Also, check that your /etc/ld.so.conf contains the line: /usr/games/lib (which it should by default) I'd recommend looking at the config file I uploaded http://bugs.gentoo.org/attachment.cgi?id=111416 - as it reflects the slight deviations the ebuild makes from the standard build; notably changing the library, cache and save paths.
Created attachment 120400 [details] the parch of the save-fix-path doesn't wotk with portage(mabe it works only with paludis)
Created attachment 120401 [details] 0.2.8-save_fix.patch-5629.out he parch of the save-fix-path doesn't wotk with portage(mabe it works only with paludis)
Created attachment 120483 [details, diff] Patch to fix saving in 0.2.8 This should fix it. The old patch didn't have the right kind of newlines in it, which used to work OK, but I guess something was updated in patch or something. Note that I still am not able to test the patch myself, so while it should now apply cleanly, it may not fix the saving problems. Let me know.
Created attachment 129700 [details] GemRB 0.2.9 ebuild Ebuild of the latest version of GemRB. Simpler than 0.2.8, as the patches and some other modifications are no longer necessary. Note that GemRB.cfg.sample is also required.
Comment on attachment 111416 [details] Example GemRB config Renamed config file to bring in line with upstream
I'm rather new to all of this, but according to http://www.gentoo.org/doc/en/ebuild-submit.xml#doc_chap2_sect2 the Component field of this bug should be "Ebuilds", not "Games". If I'm not mistaken, could the OP or an Admin change this please?
no, games is right for this one since it's assigned to the games team.
Created attachment 135108 [details] gemrb 0.2.9 make error 0.2.9 fails to compile here. Log attached. Seems a bit strange, I see only warnings... nothing serious? Should the dependencies be bumped (python 2.5, gcc 4?) Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.22.9 i586) ================================================================= System uname: 2.6.22.9 i586 Pentium MMX Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 27 Feb 2007 20:50:01 +0000 distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r3, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i586-pc-linux-gnu" CFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/portage/distfiles" FEATURES="autoconfig ccache distcc distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" LANG="de_DE@euro" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/var/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/var/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://pathfinder.sundermusic.de/gentoo-portage" USE="X a52 alsa apm berkdb crypt cups dga dvd fbcon ffmpeg flac gdbm gif glibc-omitfp gtk2 jpeg kdrive ladspa libsamplerate mad mmx mp3 ncurses nls nptl nptlonly ogg oggvorbis pam pcmcia perl png pop ppds python readline sdl sndfile ssl stream svg svga tiff truetype truetype-fonts trusted unicode usb userlocales vorbis x86 xorg xvid zlib" ALSA_CARDS="opl3sa2" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="chips" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 135117 [details, diff] Patch to fix_endian to ensure clean build Thanks for pointing that out. The bug has now been fixed upstream (in r4807), and this patch & the following updated ebuild should take it into account. Let me know if this works for you.
Created attachment 135119 [details] Gemrb 0.2.9 ebuild Updated ebuild which takes the fix_endian patch into account
Yes, it emerges now without problems. Thanks (and thank upstream.)
By the way, I'd like to add a vote for a gemrb-svn ebuild. It's not asking too much from a Gentoo user to install svn (I have it already.) I think someone reported a pretty severe bug with character creation in BG2 which Avenger wanted to fix "asap". Things like this make an svn ebuild desirable. Just my opinion.
Created attachment 135208 [details] GemRB Live SVN Ebuild Vote acknowledged :) This is my first attempt at a live ebuild, but it should work fine. It checks out the latest svn source and attempts to build from it. Note that this ebuild doesn't need the fix_endian patch, as it's fixed upstream. I haven't the resources to test it thoroughly at present, but it at least builds without problem.
Superb. Testing right now =) By the way, gemrb sound seems to be better when using Alsa OSS emulation, and starting with "aoss gemrb" (that's part of alsa-oss-utils or whatever the package is called.) Maybe put that in the ewarn or whatever those messages at the end of an emerge are called. Also, saving/loading only works if the save subdirectory exists, either in the game dir or in ~/.bg2/. The engine will not create the save subdirectory itself and thus on a fresh bg2 install, saving will fail. Should maybe be reported as a bug upstream, or go in the emerge messages, too.
Thanks for reporting the save make dir problem - I reported it and it's now fixed in SVN, so re-emerging the live ebuild should fix that. As for putting a notice advising aoss, I don't think we should do at the moment - none of the games in the main tree do, and plain alsa worked pretty fine for me last time I checked. If someone's having real problems they can come here and see your fine suggestion ;)
Created attachment 144585 [details] GemRB 0.3.0 ebuild New ebuild for 0.3.0 release. This release should have all of the previous build bugs sorted, so none of the above patches are necessary. Note that the Example GemRB config is still used by the ebuild, so keep it in the files/ directory.
Created attachment 144610 [details] GemRB Live SVN Ebuild Cleaned up & improved Live SVN ebuild
It builds on 64bit, please add ~amd64 to the KEYWORDS.
Created attachment 144993 [details] GemRB 0.3.0 ebuild Added ~amd64 keyword
Created attachment 144995 [details] GemRB Live SVN ebuild Added ~amd64 keyword
(0.3.1 released)
Well spotted. I'm not able to update this at the moment, does someone else want to check whether just bumping the version works, and post an updated ebuild? Thanks.
Created attachment 171043 [details] GemRB 0.3.1 ebuild Ebuild for GemRB 0.3.1
Created attachment 182651 [details] GemRB 0.3.2 ebuild Updated ebuild for new release 0.3.2
Created attachment 182653 [details] Example GemRB config Updated sample config file
Created attachment 192717 [details] GemRB 0.4.0 ebuild Ebuild for the latest release of GemRB, 0.4.0
Created attachment 201372 [details] GemRB 0.5.0 ebuild Ebuild for the latest version of GemRB: 0.5.0 Also now included in the 'njw' overlay.
gemrb-0.5.1.ebuild is in portage.
Great! Thanks alot Mr Bones!