mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-15 01:53:25 -04:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user