dev-python/pyalsaaudio: Replace distutils-r1 EXAMPLES use

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2020-03-20 10:56:52 +01:00
parent e1865fbf8d
commit fbdddea5b0
2 changed files with 11 additions and 3 deletions

View File

@@ -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
}

View File

@@ -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
}