dev-python/pymdown-extensions: fix doc, needs git repo to build

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:25:43 +02:00
parent 843a8a38aa
commit b35c93f595

View File

@@ -5,19 +5,16 @@ EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
#ERROR - Unable to read git logs of '/var/tmp/portage/dev-python/pymdown-extensions-7.0.0/work/pymdown-extensions-7.0.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)
#DOCBUILDER="mkdocs"
#DOCDEPEND="
# dev-python/mkdocs-minify-plugin
# dev-python/mkdocs-git-revision-date-localized-plugin
# dev-python/mkdocs-material
# dev-python/pymdown-lexers
# dev-python/pyspelling
# dev-python/pymdown-extensions
#"
DOCBUILDER="mkdocs"
DOCDEPEND="
dev-python/mkdocs-minify-plugin
dev-python/mkdocs-git-revision-date-localized-plugin
dev-python/mkdocs-material
dev-python/pymdown-lexers
dev-python/pyspelling
"
inherit distutils-r1 #docs
inherit distutils-r1 docs
DESCRIPTION="Extensions for Python Markdown."
HOMEPAGE="
@@ -37,3 +34,13 @@ DEPEND="test? (
)"
distutils_enable_tests pytest
python_prepare_all() {
# git revision date 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
}