diff options
Diffstat (limited to 'dev-python/mkdocs')
-rw-r--r-- | dev-python/mkdocs/Manifest | 1 | ||||
-rw-r--r-- | dev-python/mkdocs/mkdocs-1.1.2-r1.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/mkdocs/Manifest b/dev-python/mkdocs/Manifest index 305f0d3ce6c5..0f0dcd85fa26 100644 --- a/dev-python/mkdocs/Manifest +++ b/dev-python/mkdocs/Manifest @@ -1,3 +1,4 @@ DIST mkdocs-1.1.2.tar.gz 6987352 BLAKE2B 98bf604aa15eac693368e77e6658c3906909a0cdc323772550a65c35cc301929cdc136919a612438563cefd74c9076b2e273cb89e3ffbe04bff2a419e6e36513 SHA512 bf0e5ba8a15524ebe433fce9f2d16404922850ca562339d60e7860e243f9523321cbab5dca1f276a71d3158c7b1bfadfa25b134da50ef1cedc0b1a9658b6f10c +EBUILD mkdocs-1.1.2-r1.ebuild 1699 BLAKE2B 59e02ec5ea24d932eef86268220feff250e3f2aa7112c29e74829fc747cc9a27b86ac544ddea54759f019def3d5b2c17958b809d94ac63f87b5ab54aed2ccb3a SHA512 c10a8b6bd1ee42777d69225963521b5941d595f6a8f0fabca19ba830d3a7389a4ce7d9d88f66b63f370595bf07be33c7b69920044faeb61d76b418c177086347 EBUILD mkdocs-1.1.2.ebuild 1353 BLAKE2B 14ed1990f54f4954dba6afa3b01f967508412573e2826c7feb40c873a2f55000df8186166ea7a31f8bfadd6d040f357747007f889c19f072026bb86887a3a43f SHA512 7d24f6aa455983535ff489f3a34509e236b336a65750b383429dd7304e3243feddc6bdd94164545284f5a29b7e111ec3911591b6e478671637589c24d50a3d11 MISC metadata.xml 551 BLAKE2B 1ebea5ce1cbcbc6cf90bab20c782b40f6bd59bbb3b3931427627a5d879310eaa41c4de30836580b28b69e150817cb9e20ebd7d70073583696fb1d6b42b761b6c SHA512 cf7f3b7bc75e945ea95627961ac6b21069d5a31b5244756fe9ca364136f5b182be2529d98b9924a778533988e8c6dbc145dd9d023818040d97060690b0d4f0b1 diff --git a/dev-python/mkdocs/mkdocs-1.1.2-r1.ebuild b/dev-python/mkdocs/mkdocs-1.1.2-r1.ebuild new file mode 100644 index 000000000000..6d18515e6d89 --- /dev/null +++ b/dev-python/mkdocs/mkdocs-1.1.2-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9} ) + +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Project documentation with Markdown" +HOMEPAGE="https://www.mkdocs.org https://github.com/mkdocs/mkdocs" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="doc" + +BDEPEND=" + doc? ( + dev-python/mdx_gh_links + ) +" + +RDEPEND=" + >=dev-python/click-7.0[${PYTHON_USEDEP}] + >=dev-python/jinja-2.10.3[${PYTHON_USEDEP}] + >=dev-python/livereload-2.6.1[${PYTHON_USEDEP}] + ~dev-python/lunr-0.5.9[${PYTHON_USEDEP}] + >=dev-python/markdown-3.2.1[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.2[${PYTHON_USEDEP}] + >=www-servers/tornado-5.1.1[${PYTHON_USEDEP}] +" + +distutils_enable_tests nose + +python_prepare_all() { + # Tests fails if additional themes are installed + sed -i -e 's:test_get_themes:_&:' \ + mkdocs/tests/utils/utils_tests.py || die + + # Upstream pins this to workaround with a bug + # in lunr, from 0.5.9 onwards lunr (mistakenly?) + # depends on nltk<3.5 if [languages], which does not + # work with mkdocs. We remove the [languages] part, and + # allow the use of 0.5.9 instead of 0.5.8. + # Tests pass. + sed -i -e 's/lunr\[languages\]==0.5.8/lunr==0.5.9/g' \ + setup.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + default + if use doc; then + # cannot just do mkdocs build, because that fails if + # the package isn't already installed + python -m mkdocs build || die "Failed to make docs" + # Colliding files found by ecompress: + rm site/sitemap.xml.gz || die + HTML_DOCS=( "site/." ) + fi +} |