dev-python/pythondialog: Replace distutils-r1 EXAMPLES use
authorDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:57:24 +0000 (10:57 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:57:24 +0000 (10:57 +0100)
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
dev-python/pythondialog/pythondialog-3.3.0.ebuild
dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild
dev-python/pythondialog/pythondialog-3.4.0.ebuild

index ba7858ff7a3c52936837549c6a29b1bb75e8b022..78b66f08609432f074ad80d2506e40143115a442 100644 (file)
@@ -30,7 +30,10 @@ python_compile_all() {
 }
 
 python_install_all() {
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
        use doc && local HTML_DOCS=( doc/_build/html/. )
 
        distutils-r1_python_install_all
index ec5ff06e4cdcd9896ac61e04bf2e48bb1aa61c28..0da689d23eb7af7d1bdb3dfdf51aaad9a020017e 100644 (file)
@@ -28,7 +28,10 @@ python_compile_all() {
 }
 
 python_install_all() {
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
        use doc && local HTML_DOCS=( doc/_build/html/. )
 
        distutils-r1_python_install_all
index e14a399c3c39abcc32208ae0df71c5cad06bb591..5b669d227eb9764af14bf12d22301bfa24e265af 100644 (file)
@@ -31,7 +31,10 @@ python_compile_all() {
 }
 
 python_install_all() {
-       use examples && dodoc -r examples
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
        use doc && local HTML_DOCS=( doc/_build/html/. )
 
        distutils-r1_python_install_all
index 3731822493e3da456d73a8254cb6d0fabce4bae4..6463cb0c30b8329465ec1524530bb9ec55279d9f 100644 (file)
@@ -29,7 +29,10 @@ python_compile_all() {
 }
 
 python_install_all() {
-       use examples && dodoc -r examples
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
        use doc && local HTML_DOCS=( doc/_build/html/. )
 
        distutils-r1_python_install_all