KEYWORDS="~amd64 ~amd64-linux ~x86-linux"
fi
-IUSE="crypt doc docker examples irc test"
+IUSE="crypt docker examples irc test"
RESTRICT="!test? ( test )"
RDEPEND="
)
"
DEPEND="${RDEPEND}
- doc? (
- >=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
- dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
- dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
- dev-python/pyenchant[${PYTHON_USEDEP}]
- dev-python/docutils[${PYTHON_USEDEP}]
- dev-python/sphinx-jinja[${PYTHON_USEDEP}]
- )
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
dev-python/moto[${PYTHON_USEDEP}]
dev-python/service_identity[${PYTHON_USEDEP}]
)
)"
-# >=dev-python/docker-py-2.2.0[${PYTHON_USEDEP}]
S=${WORKDIR}/${MY_P}
[[ ${PV} == *9999 ]] && S=${S}/master
The scripts can run as a different user if desired."
}
-src_compile() {
- distutils-r1_src_compile
-
- if use doc; then
- einfo "Generation of documentation"
- pushd docs > /dev/null
- #'man' target is currently broken
- emake html
- popd > /dev/null
- fi
-}
-
src_install() {
distutils-r1_src_install
doman docs/buildbot.1
- if use doc; then
- dohtml -r docs/_build/html/
- # TODO: install man pages
- fi
-
if use examples; then
insinto /usr/share/doc/${PF}
doins -r docs/examples
DEPEND="${RDEPEND}
doc? (
>=dev-python/sphinx-1.4.3[${PYTHON_USEDEP}]
+ <dev-python/sphinx-2.1.0[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-blockdiag[${PYTHON_USEDEP}]
dev-python/sphinxcontrib-spelling[${PYTHON_USEDEP}]
dev-python/pyenchant[${PYTHON_USEDEP}]
dev-python/docutils[${PYTHON_USEDEP}]
dev-python/sphinx-jinja[${PYTHON_USEDEP}]
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
)
test? (
>=dev-python/mock-2.0.0[${PYTHON_USEDEP}]
doman docs/buildbot.1
if use doc; then
- dohtml -r docs/_build/html/
+ HTML_DOCS=( docs/_build/html/ )
# TODO: install man pages
fi