1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python2_7 python3_6 )
9 DESCRIPTION="A sphinx extension for embedding block diagrams using blockdiag"
10 HOMEPAGE="https://github.com/blockdiag/sphinxcontrib-blockdiag"
11 SRC_URI="https://github.com/blockdiag/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
15 KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux"
19 dev-python/sphinx[${PYTHON_USEDEP}]
20 >=dev-python/blockdiag-1.5.0[${PYTHON_USEDEP}]
23 dev-python/setuptools[${PYTHON_USEDEP}]"
25 dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]"
27 python_prepare_all() {
28 sed -i -e /build-base/d setup.cfg || die
29 distutils-r1_python_prepare_all
32 python_install_all() {
33 distutils-r1_python_install_all
34 find "${ED}" -name '*.pth' -delete || die