commit:     ceea3c550708d0c1bf33aa4a576f39a3c8bb3cba
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 20 09:57:24 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Mar 20 09:57:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceea3c55

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

Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild | 5 ++++-
 dev-python/pythondialog/pythondialog-3.3.0.ebuild      | 5 ++++-
 dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild | 5 ++++-
 dev-python/pythondialog/pythondialog-3.4.0.ebuild      | 5 ++++-
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild 
b/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
index ba7858ff7a3..78b66f08609 100644
--- a/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
+++ b/dev-python/pythondialog/pythondialog-3.3.0-r200.ebuild
@@ -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

diff --git a/dev-python/pythondialog/pythondialog-3.3.0.ebuild 
b/dev-python/pythondialog/pythondialog-3.3.0.ebuild
index ec5ff06e4cd..0da689d23eb 100644
--- a/dev-python/pythondialog/pythondialog-3.3.0.ebuild
+++ b/dev-python/pythondialog/pythondialog-3.3.0.ebuild
@@ -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

diff --git a/dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild 
b/dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild
index e14a399c3c3..5b669d227eb 100644
--- a/dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild
+++ b/dev-python/pythondialog/pythondialog-3.4.0-r200.ebuild
@@ -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

diff --git a/dev-python/pythondialog/pythondialog-3.4.0.ebuild 
b/dev-python/pythondialog/pythondialog-3.4.0.ebuild
index 3731822493e..6463cb0c30b 100644
--- a/dev-python/pythondialog/pythondialog-3.4.0.ebuild
+++ b/dev-python/pythondialog/pythondialog-3.4.0.ebuild
@@ -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

Reply via email to