dev-python/tweepy: Replace distutils-r1 EXAMPLES use
authorDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:57:42 +0000 (10:57 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:57:42 +0000 (10:57 +0100)
Closes: https://github.com/gentoo/gentoo/pull/15018
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/tweepy/tweepy-3.5.0.ebuild

index 603f325a84eeed7d1f6110b1ef9a09c52b56382c..f5c8f65b38def8d25415f514522d2603677e7aca 100644 (file)
@@ -47,6 +47,10 @@ python_compile_all() {
 
 python_install_all() {
        use doc && local HTML_DOCS=( docs/_build/html/. )
-       use examples && local EXAMPLES=( examples/. )
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+
        distutils-r1_python_install_all
 }