dev-python/dbus-python: Modernize doc install
authorMichał Górny <mgorny@gentoo.org>
Tue, 24 Jul 2018 10:40:31 +0000 (12:40 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 24 Jul 2018 12:19:53 +0000 (14:19 +0200)
dev-python/dbus-python/dbus-python-1.2.6-r2.ebuild

index 7e79f79b6ff9c6942797a4b669edfb7d84d1e8a5..a79c851ba442bed876b196fb3a1fa7c4503253b1 100644 (file)
@@ -74,13 +74,10 @@ src_test() {
 src_install() {
        installing() {
                default
-               [[ ${EPYTHON/.*} = "python2" ]] && use doc && dohtml -r api/*
+               [[ ${EPYTHON/.*} = "python2" ]] && use doc && dodoc -r api
        }
        python_foreach_impl run_in_build_dir installing
        find "${D}" -name "*.la" -delete || die
 
-       if use examples; then
-               insinto /usr/share/doc/${PF}
-               doins -r examples
-       fi
+       use examples && dodoc -r examples
 }