From f6f4d9a69588553e80ccc5635c5cbd59079a153d Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Sat, 28 Mar 2020 11:21:39 +0100 Subject: [PATCH] dev-python/wcmatch: doc requires newer mkdocs will make a PR for that in a bit Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Andrew Ammerlaan --- dev-python/wcmatch/wcmatch-6.0.1.ebuild | 46 ++++++++++++++++++------- 1 file changed, 34 insertions(+), 12 deletions(-) diff --git a/dev-python/wcmatch/wcmatch-6.0.1.ebuild b/dev-python/wcmatch/wcmatch-6.0.1.ebuild index 2e302e4bd8..a056fd861f 100644 --- a/dev-python/wcmatch/wcmatch-6.0.1.ebuild +++ b/dev-python/wcmatch/wcmatch-6.0.1.ebuild @@ -3,8 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_6 ) -#DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6,7,8} ) inherit distutils-r1 @@ -18,18 +17,41 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" +#IUSE="doc" + +# Need mkdocs-1.1 for this +#BDEPEND=" +# doc? ( +# dev-python/mkdocs-git-revision-date-localized-plugin +# dev-python/mkdocs_pymdownx_material_extras +# dev-python/pyspelling +# ) +#" + RDEPEND=" >=dev-python/backrefs-4.1[${PYTHON_USEDEP}] >=dev-python/bracex-2.0[${PYTHON_USEDEP}] " -DEPEND=" - ${RDEPEND} - test? ( - dev-python/bracex[${PYTHON_USEDEP}] - ) -" + distutils_enable_tests pytest -distutils_enable_sphinx docs/src \ - dev-python/mkdocs-git-revision-date-localized-plugin \ - dev-python/mkdocs_pymdownx_material_extras \ - dev-python/pyspelling + +python_prepare_all() { + # no such file or dir ~homedir + sed -i -e 's:test_tilde_user:_&:' \ + tests/test_glob.py || die + + # AssertionError: 0 == 0 + sed -i -e 's:test_tilde_globmatch_no_realpath:_&:' \ + -e 's:test_tilde_globmatch_no_tilde:_&:' \ + tests/test_globmatch.py || die + + distutils-r1_python_prepare_all +} + +#python_compile_all() { +# default +# if use doc; then +# mkdocs build || die "failed to make docs" +# HTML_DOCS="site" +# fi +#}