distutils-r1.eclass: Do not rely on INSDESTTREE, #173630
authorMichał Górny <mgorny@gentoo.org>
Sat, 14 May 2016 06:14:03 +0000 (08:14 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 14 May 2016 07:19:57 +0000 (09:19 +0200)
eclass/distutils-r1.eclass

index 7965e9106a490041fb6bb80cf6d2df2c58cfb6f5..e8de5ad6c4ebe172fada98f586ff5484d12b4ce8 100644 (file)
@@ -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