dev-python/python-xmp-toolkit: Use distutils_enable_sphinx

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-05-16 18:04:57 +02:00
parent 8441751520
commit 1ab0bcc451
@@ -21,11 +21,8 @@ HOMEPAGE="https://github.com/python-xmp-toolkit/python-xmp-toolkit/ https://pypi
LICENSE="BSD"
SLOT="0"
IUSE="doc test"
RESTRICT="!test? ( test )"
DEPEND="
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
test? ( media-libs/exempi )
"
RDEPEND="
@@ -34,13 +31,5 @@ RDEPEND="
PATCHES=( "${FILESDIR}"/${P}-test.patch )
distutils_enable_sphinx docs
distutils_enable_tests unittest
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && local HTML_DOCS=( docs/.build/html/. )
distutils-r1_python_install_all
}