dev-python/eventlet: Fix EXAMPLES are banned in EAPI 7
authorZac Medico <zachary.medico@sony.com>
Wed, 26 Jun 2019 02:55:41 +0000 (19:55 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 26 Jun 2019 02:56:38 +0000 (19:56 -0700)
Reported-by: Toralf Förster <toralf@gentoo.org>
Closes: https://bugs.gentoo.org/677160
Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Zac Medico <zmedico@gentoo.org>
dev-python/eventlet/eventlet-0.24.1-r1.ebuild
dev-python/eventlet/eventlet-0.24.1.ebuild

index 53a7b690c00df1dbef47e4f2ec533bcacb07a119..3ba860818805bec6e91971f67dbcd2825df2953e 100644 (file)
@@ -65,6 +65,10 @@ python_test() {
 
 python_install_all() {
        use doc && local HTML_DOCS=( doc/_build/html/. )
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               docompress -x "/usr/share/doc/${PF}/examples"
+               docinto examples
+               dodoc -r examples/.
+       fi
        distutils-r1_python_install_all
 }
index 8ec774402b7bff81c6993e8fb2f4eba5aa6abe25..dc239a70b4a9c708ecf1f4207054116e34a51e10 100644 (file)
@@ -66,6 +66,10 @@ python_test() {
 
 python_install_all() {
        use doc && local HTML_DOCS=( doc/_build/html/. )
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               docompress -x "/usr/share/doc/${PF}/examples"
+               docinto examples
+               dodoc -r examples/.
+       fi
        distutils-r1_python_install_all
 }