app-text/pdfminer: Replace distutils-r1 EXAMPLES use
authorDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:55:52 +0000 (10:55 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 20 Mar 2020 09:55:52 +0000 (10:55 +0100)
Package-Manager: Portage-2.3.94, Repoman-2.3.21
Signed-off-by: David Seifert <soap@gentoo.org>
app-text/pdfminer/pdfminer-20140328-r1.ebuild
app-text/pdfminer/pdfminer-20140328.ebuild

index 342b4f9f88f39fb5ec5495f0f08054f90ee7e523..ea6d4f1215eda1effbb70fa0143918f12e705699 100644 (file)
@@ -26,6 +26,11 @@ python_test() {
 
 python_install_all() {
        use doc && local HTML_DOCS=( docs/. )
-       use examples && local EXAMPLES=( samples/. )
+       if use examples; then
+               docinto examples
+               dodoc -r samples/.
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+
        distutils-r1_python_install_all
 }
index 97c356bcfc39fd3f34cd1db555241b82970528ad..8406215f47894067421e5dad96f338952b38d33a 100644 (file)
@@ -21,6 +21,11 @@ python_compile_all() {
 
 python_install_all() {
        use doc && local HTML_DOCS=( docs/. )
-       use examples && local EXAMPLES=( samples/. )
+       if use examples; then
+               docinto examples
+               dodoc -r samples/.
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+
        distutils-r1_python_install_all
 }