Files
guru/dev-python/sphinxcontrib-katex/sphinxcontrib-katex-0.9.3.ebuild
2023-01-19 01:43:38 +03:00

34 lines
724 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} pypy3 )
inherit distutils-r1
DESCRIPTION="KaTeX Sphinx extension for rendering of math in HTML pages"
HOMEPAGE="https://github.com/hagenw/sphinxcontrib-katex"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=dev-python/sphinx-4.5.0-r1[${PYTHON_USEDEP}]"
DOCS=()
distutils_enable_sphinx docs
src_prepare() {
default
sed -i -e 's/license_file/license_files/' setup.cfg || die
}
python_install_all() {
distutils-r1_python_install_all
find "${ED}" -name '*.pth' -delete || die
}