Closes: https://bugs.gentoo.org/682900
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: David Seifert <soap@gentoo.org>
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
+
PYTHON_COMPAT=( python2_7 pypy )
inherit distutils-r1
if use doc; then
einfo "Generation of documentation"
esetup.py docs
+
+ # remove cruft
+ rm -f html/api-objects.txt || die
+ HTML_DOCS=( html/. )
fi
}
}
python_install_all() {
- dodoc AUTHORS.txt CHANGES.txt README.txt
+ distutils-r1_python_install_all
- if use doc; then
- dohtml html/*
- fi
+ dodoc AUTHORS.txt CHANGES.txt README.txt
if use examples; then
docinto examples
- dodoc examples/*.txt
- insinto /usr/share/doc/${PF}/examples
- doins examples/*.py
+ dodoc examples/*.{txt,py}
fi
}