mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-16 02:23:16 -04:00
dev-python/ManimPango: allow doc, drop 0.5.0, add 0.6.0
Signed-off-by: Henri Gasc <gasc@eurecom.fr>
This commit is contained in:
@@ -3,11 +3,18 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
DOCS_BUILDER="sphinx"
|
||||
DOCS_DEPEND="
|
||||
dev-python/furo
|
||||
dev-python/sphinxext-opengraph
|
||||
"
|
||||
DOCS_DIR="docs"
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..12} )
|
||||
PYTHON_COMPAT=( python3_{10..12} pypy3 ) # Python 13 fails
|
||||
|
||||
inherit distutils-r1
|
||||
inherit distutils-r1 docs
|
||||
|
||||
DESCRIPTION="Binding for Pango, to use with Manim."
|
||||
HOMEPAGE="https://github.com/ManimCommunity/ManimPango https://pypi.org/project/manimpango"
|
||||
@@ -17,6 +24,7 @@ LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="debug"
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
@@ -28,16 +36,18 @@ BDEPEND="
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
x11-libs/pango
|
||||
"
|
||||
# doc? (
|
||||
# dev-python/furo[${PYTHON_USEDEP}]
|
||||
# dev-python/sphinxext-opengraph[${PYTHON_USEDEP}]
|
||||
# )
|
||||
DEPEND="${BDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
# The tests always fails (ManimPango has to be installed for them to work)
|
||||
rm -rf "${S}/tests"
|
||||
# Half of the tests fails or are not run
|
||||
use test && sed -i -e '/--cov/d' setup.cfg
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
# distutils_enable_sphinx docs # We need a lot of other packages if we allow doc
|
||||
python_compile_all() {
|
||||
# Need to remove this, otherwise docs_compile fails
|
||||
rm -rf "${S}/manimpango" || die
|
||||
docs_compile
|
||||
}
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
Reference in New Issue
Block a user