From: David Seifert Date: Fri, 20 Mar 2020 09:56:52 +0000 (+0100) Subject: dev-python/pyalsaaudio: Replace distutils-r1 EXAMPLES use X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fbdddea5b0803b49fd2c64cbbd6cb4688beeb59e;p=gentoo.git dev-python/pyalsaaudio: 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/pyalsaaudio/pyalsaaudio-0.7-r2.ebuild b/dev-python/pyalsaaudio/pyalsaaudio-0.7-r2.ebuild index 687e556b8ed5..cc8e0a892d3b 100644 --- a/dev-python/pyalsaaudio/pyalsaaudio-0.7-r2.ebuild +++ b/dev-python/pyalsaaudio/pyalsaaudio-0.7-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -32,7 +32,11 @@ python_compile_all() { python_install_all() { use doc && local HTML_DOCS=( doc/html/. ) - local EXAMPLES=( *test.py ) + if use examples; then + docinto examples + dodoc *test.py + docompress -x /usr/share/doc/${PF}/examples + fi distutils-r1_python_install_all } diff --git a/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild index 86ab4f4bfb56..755668b93831 100644 --- a/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild +++ b/dev-python/pyalsaaudio/pyalsaaudio-0.8.2.ebuild @@ -39,7 +39,11 @@ python_test() { python_install_all() { use doc && local HTML_DOCS=( doc/html/. ) - local EXAMPLES=( *test.py ) + if use examples; then + docinto examples + dodoc *test.py + docompress -x /usr/share/doc/${PF}/examples + fi distutils-r1_python_install_all }