mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-08 18:27:07 -08:00
dev-python/python-xmp-toolkit: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user