commit:     27d5aa49268aa443cadea783798225032d2e777d
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Sat Dec  7 22:28:59 2024 +0000
Commit:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
CommitDate: Sat Dec  7 22:29:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=27d5aa49

dev-python/moderngl-window: Use default python_install_all

Closes: https://bugs.gentoo.org/946061
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 ...-window-3.0.3.ebuild => moderngl-window-3.0.3-r1.ebuild} | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/dev-python/moderngl-window/moderngl-window-3.0.3.ebuild 
b/dev-python/moderngl-window/moderngl-window-3.0.3-r1.ebuild
similarity index 92%
rename from dev-python/moderngl-window/moderngl-window-3.0.3.ebuild
rename to dev-python/moderngl-window/moderngl-window-3.0.3-r1.ebuild
index 8fc396554..f8c34accf 100644
--- a/dev-python/moderngl-window/moderngl-window-3.0.3.ebuild
+++ b/dev-python/moderngl-window/moderngl-window-3.0.3-r1.ebuild
@@ -41,16 +41,19 @@ BDEPEND="
 "
 DEPEND="${RDEPEND}"
 
-python_install_all() {
-       dodoc -r examples
-       docompress -x /usr/share/doc/${PF}/examples
-}
-
 distutils_enable_tests pytest
 src_test() {
        virtx distutils-r1_src_test
 }
 
+python_install_all() {
+       distutils-r1_python_install_all
+       if use doc; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}
+
 pkg_postinst() {
        optfeature "supporting pygame as backend" dev-python/pygame
        optfeature "supporting pysdl2 as backend" dev-python/pysdl2

Reply via email to