find the C++ man page dir dynamically to handle gcc-4.3+ #273654 by David Flogeras
authorMike Frysinger <vapier@gentoo.org>
Fri, 2 Dec 2011 21:03:39 +0000 (21:03 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 2 Dec 2011 21:03:39 +0000 (21:03 +0000)
eclass/toolchain.eclass

index 4cd5f508e64ddf4a12ff04718511b633cacc4c9f..c4bb81c47900ebc35058d240d25b2deb56d742d8 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.483 2011/11/30 23:53:57 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.484 2011/12/02 21:03:39 vapier Exp $
 #
 # Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
 
@@ -1787,7 +1787,7 @@ toolchain_src_install() {
                rm -rf "${D}"/usr/share/{man,info}
                rm -rf "${D}"${DATAPATH}/{man,info}
        else
-               local cxx_mandir=${WORKDIR}/build/${CTARGET}/libstdc++-v3/docs/doxygen/man
+               local cxx_mandir=$(find "${WORKDIR}/build/${CTARGET}/libstdc++-v3" -name man)
                if [[ -d ${cxx_mandir} ]] ; then
                        # clean bogus manpages #113902
                        find "${cxx_mandir}" -name '*_build_*' -exec rm {} \;