commit:     9907fe41a2bc6fc8dbe825d226bccf714dd17b24
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 26 11:29:17 2014 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 26 11:29:17 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=9907fe41

sys-apps/portage: Use new distutils-r1 features to install docs without 
reinstalling whole Portage.

Package-Manager: portage-2.2.11_p165

---
 sys-apps/portage/portage-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-apps/portage/portage-9999.ebuild 
b/sys-apps/portage/portage-9999.ebuild
index b4e63e7..c949ece 100644
--- a/sys-apps/portage/portage-9999.ebuild
+++ b/sys-apps/portage/portage-9999.ebuild
@@ -186,8 +186,10 @@ python_install_all() {
        use doc && targets+=( install_docbook )
        use epydoc && targets+=( install_epydoc )
 
-       # install docs + replace scripts with preferred impl
-       python_install "${targets[@]}"
+       # install docs
+       if [[ ${targets[@]} ]]; then
+               esetup.py "${targets[@]}"
+       fi
 }
 
 pkg_preinst() {

Reply via email to