Attached there is an ebuild patch that adds these enhancements: 1- added USE 'static-libs' to correctly handle .la/.a files (the actual ebuild just disable static archives and delete libtool archives unconditionally, making the ebuild itself useless for static compilations and/or Gentoo embedded setups); 2- added USE 'doc' that installs the html documentation only if enabled (very useful for embedded targets where the API docs isn't necessary at all); Hope it's useful. Mauro p.s.: Orc isn't a programming language, it's a C/asm library framework (it's the successor of dev-libs/liboil) so it belongs to the dev-libs category and not to the dev-lang IMHO).
Created attachment 229373 [details, diff] orc-0.4.4-r1.ebuild.patch
I'm not adding the USE doc hack in the ebuild, you can use INSTALL_MASK if you don't want docs. As for .la files, the package has pkg-config file, so they are not useful either. And what for you need static libs from orc?
(In reply to comment #2) > I'm not adding the USE doc hack in the ebuild, you can use INSTALL_MASK if you > don't want docs. I don't see the flexibility of INSTALL_MASK + Portage's environment profiles for the final users (most of them don't know the existance of /etc/portage/env at all) and, correct me if I'm wrong, I see a lot of ebuilds in Portage that have USE 'doc', 'html' and 'html-api', are you telling me that they are all wrong? However isn't so important to me, feel free to not add the USE 'doc'. p.s.: there is a recent (24 Apr 2010) discussion on ML -devel about a potential removal of the Portage's environment profiles. > And what for you need static libs from orc? for personal usage, I'm deploying softwares on embedded targets that use static libs from liboil and Orc; in portage there aren't dev-libs/liboild-static dev-libs/orc-static ebuilds so I'm obliged to manually tweak the ebuilds (and I dont' see the need to create a parallel ebuild for static purposes when there is the USE 'static-libs' and the package honours the autoconf --enable-static option). Just to be more clear, other distro have liboil-static and liborc-static for these purposes, so why not Gentoo? p.s.: files /usr/lib/orc/example1, /usr/lib/orc/mt19937ar and /usr/lib/orc/volscale aren't libraries but just examples/tests, maybe a USE 'examples' is more appropriated here, however they are useless for daily usage.
+ 15 May 2010; Samuli Suominen <ssuominen@gentoo.org> orc-0.4.4.ebuild: + USE static-libs wrt #317447 by Toffanin Mauro. and adjusted summary... will fix the examples issue soon
(In reply to comment #4) > + 15 May 2010; Samuli Suominen <ssuominen@gentoo.org> orc-0.4.4.ebuild: > + USE static-libs wrt #317447 by Toffanin Mauro. > > and adjusted summary... will fix the examples issue soon Thank you very much Samuli, I really appreciate it.
Bumped to 0.4.5 and added examples use flag