There are already useflags for [mpi] and [python]. A list of all the libraries that come with boost 1_42_0: - date_time filesystem graph graph_parallel iostreams math mpi program_options python random regex serialization signals system test thread wave At least math, regex, test & wave libraries have a longer compile-time. It would be good to make them optional. Another idea I have had is to make an eclass for boost to reduce maintenance. Though, I wonder how often the build system changes that drastically that would drive it useless to make an eclass for boost. Well, just some thoughts. :)
If you do not want to spam IUSE with options there is an alternative. An example is the apache2 package. It has an environment variable to set its modules to be built. There are surely even other ways possible. $ grep ^APACHE /etc/make.conf APACHE2_MODULES="actions alias auth_basic ..." APACHE2_MPMS="worker"
I finally managed to create a boost eclass with use flags for boost libraries. ebuild: http://code.google.com/p/gekis-playground/source/browse/trunk/dev-libs/boost/boost-1.47.0-r1.ebuild eclass: http://code.google.com/p/gekis-playground/source/browse/trunk/eclass/boost-monolithic.eclass The regex DEPEND may be moved to the ebuild. The REQUIRED_USE likewise. Improvements and ideas are welcomed! I will not add eselect support. That is up to whoever wants that! ___ The boost headers should be in an own ebuild for not copying each header file into the image separately. Sane projects may require boost headers but no boost libraries. ebuild: http://code.google.com/p/gekis-playground/source/browse/trunk/dev-libs/boost-headers/boost-headers-1.47.0.ebuild eclass: http://code.google.com/p/gekis-playground/source/browse/trunk/eclass/boost-headers.eclass
*** This bug has been marked as a duplicate of bug 260404 ***