i'v installed the ogre-1.2.2_p1 and tryed to build some sample aplication from their wiki page. After compilation it complains about missing resources.cfg and plugins.cfg files - after check in ebuild file thouse file are deleted from installation along with a Samples/bin directory. It would be nice for ebuild to keep thous files as in installation.
Here is ebuild which contain fix of your problem: http://bugs.gentoo.org/show_bug.cgi?id=138093
I recheck ogre-1.2.2_p1.ebuild and do not found any removing routines. doins -r is recursive operation, not removing. You must copy needed files from /usr/share/OGRE/Samples/bin/*.cfg to directory with your binary (and fix some paths in them). Do not forget to compile ogre with "examples" USE-flag.
I know that rm -rf is recursive and it removes recursively "bin" directory from instalation. in ebuild ogre-1.2.2_p1 - in source unpack routine... this is code from oryginal ebuild: if use examples ; then cp -r Samples install-examples || die find install-examples \ '(' -name 'Makefile*' -o -name CVS -o -name obj -o \ -name bin -o -name '*.cbp' -o -name '*.vcproj*' ')' \ -print0 | xargs -0 rm -rf fi so ebuild from comment #1 fix this problem - but isn't available in my portage yet.
I know that this is a very old bug, but it is still relevant, even for 1.4.2. The .cfg files are still deleted, which makes the Samples completely useless, as they won't run.
Well this could be fixed by adding this: this is code from oryginal ebuild: if use examples ; then cp -r Samples install-examples || die find install-examples \ '(' -name 'Makefile*' -o -name CVS -o -name obj -o \ -name bin -o -name '*.cbp' -o -name '*.vcproj*' ')' \ -print0 | xargs -0 rm -rf + cp Samples/bin/resources.cfg install-examples + cp Samples/bin/plugins.cfg install-examples fi in fakt this files will not be correct but will give example what should they look like. One can use sed to change them to point to apriopriate places in file system after ogre instalation. I will try to do this in some time. remarks: path in resources.cfg should point to /usr/share/doc/OGREVERSION/Samples/Media/ directory respectively - where for ex. OGREVERSION=ogre-1.4.2 as to plugins.cfg there should be path to /usr/lib/OGRE in PluginFolder and names of library files that start from PLUGIN_ or RenderSystem_ as Plugin= each a separate line. there are some examples: plugins.cfg: # Defines plugins to load # Define plugin folder PluginFolder=/usr/lib/OGRE/ # Define D3D rendering implementation plugin Plugin=RenderSystem_GL.so Plugin=Plugin_ParticleFX.so Plugin=Plugin_BSPSceneManager.so Plugin=Plugin_OctreeSceneManager.so Plugin=Plugin_CgProgramManager.so #EOF resources.cfg # Resource locations to be added to the 'boostrap' path # This also contains the minimum you need to use the Ogre example framework [Bootstrap] Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/core/OgreCore.zip # Resource locations to be added to the default path [General] FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/fonts FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/programs FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/scripts FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/materials/textures FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/models FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/overlays FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/particle FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/gui FileSystem=/usr/share/doc/ogre-1.4.2/Samples/Media/DeferredShadingMedia Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/cubemap.zip Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/cubemapsJS.zip Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/dragon.zip Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/fresneldemo.zip Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/ogretestmap.zip Zip=/usr/share/doc/ogre-1.4.2/Samples/Media/packs/skybox.zip #EOF I hope that helps until ebuild will be corected.
ogre-1.2.2 isn't in portage anymore.