dev-python/cliff-tablib: Replace distutils-r1 EXAMPLES use
authorDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:56:01 +0000 (10:56 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:56:01 +0000 (10:56 +0100)
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap@gentoo.org>
dev-python/cliff-tablib/cliff-tablib-1.1-r2.ebuild

index 7cae8ec8c0cd4dc0634ab5403cbc4604f3758043..401d2a5a48eb4c61564d12bde7b9c9be94907535 100644 (file)
@@ -20,8 +20,12 @@ RDEPEND="dev-python/tablib[${PYTHON_USEDEP}]
 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 
 python_install_all() {
-       # Use IUSE examples for installing the demoapp
-       use examples && local EXAMPLES=( demoapp/. )
        use doc && local HTML_DOCS=( docs/build/html/. )
+       if use examples; then
+               docinto examples
+               dodoc -r demoapp/.
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+
        distutils-r1_python_install_all
 }