mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/tracing: [QA] Call distutils-r1_python_install_all
Closes: https://bugs.gentoo.org/682166 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
@@ -16,16 +16,22 @@ SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="doc examples"
|
||||
|
||||
DEPEND="doc? ( dev-python/sphinx )"
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C doc html
|
||||
if use doc; then
|
||||
emake -C doc html
|
||||
HTML_DOCS=( doc/_build/html/. )
|
||||
rm -rf doc/_build/html/{objects.inv,_sources} || die
|
||||
fi
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
dodoc README
|
||||
use doc && dohtml -r doc/_build/html/
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
docompress -x usr/share/doc/${PF}/examples/
|
||||
insinto usr/share/doc/${PF}/examples/
|
||||
doins example.py
|
||||
docinto examples
|
||||
dodoc example.py
|
||||
docompress -x /usr/share/doc/${PF}/examples/
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user