--- mongodb-2.2.1.ebuild +++ mongodb-2.2.1.ebuild @@ -58,6 +58,7 @@ epatch "${FILESDIR}/${PN}-2.2-r1-fix-scons.patch" epatch "${FILESDIR}/${PN}-2.2-r1-fix-boost.patch" epatch "${FILESDIR}/${PN}-2.2-r2-boost-1.50.patch" + epatch "${FILESDIR}/${P}-c++11.patch" # FIXME: apply only this fix [1] on x86 boxes as it breaks /usr/lib symlink # on amd64 machines [2]. @@ -68,6 +69,12 @@ fi } +src_configure() { + if has_version "dev-libs/boost[c++11(-)]"; then + append-cxxflags -std=c++11 + fi +} + src_compile() { escons ${scons_opts} all }