From: Michał Górny Date: Sat, 14 May 2016 06:14:03 +0000 (+0200) Subject: distutils-r1.eclass: Do not rely on INSDESTTREE, #173630 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=094273fc0ec38dcb292a767169dcd265da9d5142;p=gentoo.git distutils-r1.eclass: Do not rely on INSDESTTREE, #173630 --- diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 7965e9106a49..e8de5ad6c4eb 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -588,9 +588,11 @@ distutils-r1_python_install_all() { if declare -p EXAMPLES &>/dev/null; then [[ ${EAPI} != [45] ]] && die "EXAMPLES are banned in EAPI ${EAPI}" - local INSDESTTREE=/usr/share/doc/${PF}/examples - doins -r "${EXAMPLES[@]}" - docompress -x "${INSDESTTREE}" + ( + docinto examples + dodoc -r "${EXAMPLES[@]}" + ) + docompress -x "/usr/share/doc/${PF}/examples" fi _DISTUTILS_DEFAULT_CALLED=1