From ba80e97fa5022987c4c11ff7da7ff8d271ee8037 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Mon, 17 Jul 2017 14:14:11 -0700 Subject: dev-python/sphinx: Revision bump, move dep on dev-python/typing to RDEPEND Gentoo-Bug: 625254 Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- dev-python/sphinx/sphinx-1.6.3-r1.ebuild | 2 +- dev-python/sphinx/sphinx-1.6.3-r2.ebuild | 117 +++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 dev-python/sphinx/sphinx-1.6.3-r2.ebuild (limited to 'dev-python/sphinx') diff --git a/dev-python/sphinx/sphinx-1.6.3-r1.ebuild b/dev-python/sphinx/sphinx-1.6.3-r1.ebuild index c631ded997ce..4633c97a8418 100644 --- a/dev-python/sphinx/sphinx-1.6.3-r1.ebuild +++ b/dev-python/sphinx/sphinx-1.6.3-r1.ebuild @@ -30,6 +30,7 @@ RDEPEND=" >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] >=dev-python/sphinx_rtd_theme-0.1[${PYTHON_USEDEP}] /dev/null || die + "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." + popd >/dev/null || die +} + +python_compile_all() { + if use doc; then + emake -C doc SPHINXBUILD='"${EPYTHON}" "${S}/sphinx-build.py"' html + HTML_DOCS=( doc/_build/html/. ) + fi +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests" + cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile" + emake test +} + +pkg_postinst() { + replacing_python_eclass() { + local pv + for pv in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 1.1.3-r4 ${pv}; then + return 0 + fi + done + + return 1 + } + + if replacing_python_eclass; then + ewarn "Replaced a very old sphinx version. If you are" + ewarn "experiencing problems, please re-emerge sphinx." + fi +} -- cgit v1.2.3-65-gdbad