--- /var/paludis/repositories/gentoo/dev-libs/boost/boost-1.35.0-r2.ebuild 2008-09-01 14:37:20.000000000 -0400 +++ /tmp/boost-1.35.0-r2.ebuild 2009-03-02 04:03:14.211987177 -0500 @@ -15,7 +15,24 @@ mirror://gentoo/boost-patches-${PATCHSET_VERSION}.tbz2" LICENSE="freedist Boost-1.0" SLOT="0" -IUSE="debug doc expat icu mpi tools" + +# prefix these with 'boost_libs_' if USE_EXPAND="BOOST_LIBS" is added to base profile +IUSE_BOOST_LIBS=" + +boost_libs_date_time + +boost_libs_filesystem + +boost_libs_graph + +boost_libs_iostreams + +boost_libs_program_options + +boost_libs_python + +boost_libs_regex + +boost_libs_serialization + +boost_libs_signals + +boost_libs_test + +boost_libs_thread + +boost_libs_wave +" + +IUSE="${IUSE_BOOST_LIBS} debug doc expat icu mpi tools" RDEPEND="icu? ( >=dev-libs/icu-3.3 ) expat? ( dev-libs/expat ) @@ -83,9 +100,13 @@ OPTIONS="${OPTIONS} -sEXPAT_INCLUDE=/usr/include -sEXPAT_LIBPATH=/usr/$(get_libdir)" fi - if ! use mpi ; then - OPTIONS="${OPTIONS} --without-mpi" - fi + ! use mpi && OPTIONS="${OPTIONS} --without-mpi" + + for boostlib in ${IUSE_BOOST_LIBS}; do + if ! use $boostlib; then + OPTIONS="${OPTIONS} --without-$(echo $boostlib | sed 's:[+-]::;s:boost_libs_::')" + fi + done OPTIONS="${OPTIONS} --user-config=${S}/user-config.jam --boost-build=/usr/share/boost-build" }