dev-python/pyspelling: fix doc, needs git repo

Package-Manager: Portage-2.3.98, Repoman-2.3.22
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2020-04-10 09:20:18 +02:00
parent d5a64cecce
commit 843a8a38aa

View File

@@ -7,16 +7,13 @@ PYTHON_COMPAT=( python3_{6,7,8} )
DISTUTILS_USE_SETUPTOOLS=rdepend
#ERROR - Unable to read git logs of '/tmp/mozilla_andrew0/pyspelling-2.6.0/docs/src/markdown/index.md'. To ignore this error, set option 'ignoring_missing_git: true'
#ERROR - Error reading page 'index.md': Cmd('git') failed due to: exit code(128)
# How does one set this option though???
#DOCBUILDER="mkdocs"
#DOCDEPEND="
# dev-python/mkdocs-git-revision-date-localized-plugin
# dev-python/mkdocs_pymdownx_material_extras
# ~dev-python/mkdocs-material-5.0.0_rc2"
DOCBUILDER="mkdocs"
DOCDEPEND="
dev-python/mkdocs-git-revision-date-localized-plugin
dev-python/mkdocs_pymdownx_material_extras
~dev-python/mkdocs-material-5.0.0_rc2"
inherit distutils-r1 #docs
inherit distutils-r1 docs
DESCRIPTION="Spell checker automation tool"
HOMEPAGE="https://github.com/facelessuser/pyspelling"
@@ -41,3 +38,13 @@ RDEPEND="
PATCHES="${FILESDIR}/${P}-do-not-install-tests.patch"
distutils_enable_tests pytest
python_prepare_all() {
# git revision data plugin needs git repo to build
if use doc; then
git init || die
git add -A || die
git commit -q -m ".." || die
fi
distutils-r1_python_prepare_all
}