I remember similiar bug was reported and rejected, but new portage became much more advanced and probably should allow to do it. I use only some components of LibreOffice, but it Gentoo build it installs all of them, including those I don't need. I need LO Writer for app-officeext/ooofbtools. Sometimes I find useful LO Impress (mode for reading presentations, than for their creation). Historically I prefer app-office/gnumeric as spreadsheet processor, so I don't need LO Calc. And don't need other LO components at all. So I find it great if them willn't be installed (app-office/libreoffice and installed for app-office/libreoffice-bin) at all. Similiarly, if possible, for app-office/openoffice-bin. Like it (list of installed modules) is done for example for www-servers/apache (APACHE2_MODULES use_expand).
BTW, now I see the similiar USE_EXPAND for Calligra (former — K Office): /usr/portage/gentoo/profiles/desc/calligra_features.desc … # Keep it sorted. author - CALLIGRA_FEATURES option to build minimalistic word processor application … sheets - CALLIGRA_FEATURES option to build spreadsheet processor … words - CALLIGRA_FEATURES option to build word processor
Adding reference to more detailed request (back-ends for LO Base).
Unless upstream supports a modular build like that (which it currently doesn't) there's no way for Gentoo to do this. LibreOffice is splitting out libs into separate packages ever so often, but I am not aware of any work towards modularising the application itself.
(In reply to Andreas Sturmlechner from comment #3) > Unless upstream supports a modular build like that (which it currently > doesn't) there's no way for Gentoo to do this. LibreOffice is splitting out > libs into separate packages ever so often, but I am not aware of any work > towards modularising the application itself. ++