diff --git a/sci-mathematics/sage-doc/sage-doc-9999.ebuild b/sci-mathematics/sage-doc/sage-doc-9999.ebuild index b5b1153ad..95ea09465 100644 --- a/sci-mathematics/sage-doc/sage-doc-9999.ebuild +++ b/sci-mathematics/sage-doc/sage-doc-9999.ebuild @@ -77,13 +77,6 @@ python_check_deps() { python_has_version -b "dev-python/sphinx-inline-tabs[${PYTHON_USEDEP}]" } -pkg_setup() { - if has_version media-gfx/graphviz ; then - has_version dev-tex/dot2tex || die \ - "You have graphviz installed. In that case you also need to install dot2tex to build the documentation." - fi -} - src_unpack(){ if [[ ${PV} == 9999 ]]; then git-r3_src_unpack @@ -95,6 +88,11 @@ src_unpack(){ src_prepare(){ default + if has_version media-gfx/graphviz ; then + has_version dev-tex/dot2tex || die \ + "You have graphviz installed. In that case you also need to install dot2tex to build the documentation." + fi + einfo "bootstrapping the documentation - be patient" SAGE_ROOT="${S}" PATH="${S}/build/bin:${PATH}" src/doc/bootstrap || die "cannot bootstrap the documentation"