From 57b66bba2a9f877e4204368e60de32a938cca71e Mon Sep 17 00:00:00 2001 From: David Seifert Date: Fri, 20 Mar 2020 10:57:00 +0100 Subject: [PATCH] dev-python/pycxx: Replace distutils-r1 EXAMPLES use Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: David Seifert --- dev-python/pycxx/pycxx-6.2.6.ebuild | 7 ++++++- dev-python/pycxx/pycxx-7.1.2.ebuild | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/dev-python/pycxx/pycxx-6.2.6.ebuild b/dev-python/pycxx/pycxx-6.2.6.ebuild index c90dbab688d3..1baa0be8acc3 100644 --- a/dev-python/pycxx/pycxx-6.2.6.ebuild +++ b/dev-python/pycxx/pycxx-6.2.6.ebuild @@ -31,6 +31,11 @@ python_prepare_all() { python_install_all() { use doc && local HTML_DOCS=( Doc/. ) - use examples && local EXAMPLES=( Demo/Python{2,3}/. ) + if use examples; then + docinto examples + dodoc -r Demo/Python{2,3}/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all } diff --git a/dev-python/pycxx/pycxx-7.1.2.ebuild b/dev-python/pycxx/pycxx-7.1.2.ebuild index d9581f73d9f4..9e61adbe736c 100644 --- a/dev-python/pycxx/pycxx-7.1.2.ebuild +++ b/dev-python/pycxx/pycxx-7.1.2.ebuild @@ -25,6 +25,11 @@ python_prepare_all() { python_install_all() { use doc && local HTML_DOCS=( Doc/. ) - use examples && local EXAMPLES=( Demo/Python{2,3}/. ) + if use examples; then + docinto examples + dodoc -r Demo/Python{2,3}/. + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all } -- 2.26.2