From: David Seifert Date: Fri, 20 Mar 2020 09:57:00 +0000 (+0100) Subject: dev-python/pycxx: Replace distutils-r1 EXAMPLES use X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57b66bba2a9f877e4204368e60de32a938cca71e;p=gentoo.git dev-python/pycxx: Replace distutils-r1 EXAMPLES use Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: David Seifert --- 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 }