diff options
Diffstat (limited to 'app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild')
-rw-r--r-- | app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild b/app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild index efa529306357..0ae6c89946c7 100644 --- a/app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild +++ b/app-doc/mathjax-docs/mathjax-docs-2.7.7.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit python-utils-r1 vcs-clean +PYTHON_COMPAT=( python3_{10..11} pypy3 ) +inherit python-any-r1 vcs-clean COMMIT="9d711f40638202b02f2154d7f05ea35088ff9388" @@ -14,24 +15,28 @@ S="${WORKDIR}/MathJax-docs-${COMMIT}" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" BDEPEND=" - dev-python/sphinx - dev-python/sphinx_rtd_theme + $(python_gen_any_dep ' + dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}] + ') " +python_check_deps() { + python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && + python_has_version "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]" +} + +DOCS=( README.md ) + src_prepare() { default egit_clean + sed -e 's/add_stylesheet/add_css_file/' -i conf.py || die } src_compile() { build_sphinx "${S}" } - -src_install() { - local DOCS=( README.md ) - default - dosym ${P} /usr/share/doc/${PN}-${SLOT} -} |