commit: e78fbb2ee1dddb372ebc6bce55095a1d138baa0d
Author: Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Wed Mar 13 23:07:45 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Wed Mar 13 23:07:45 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e78fbb2e
media-video/manimgl: Update ebuild funcs and deps
Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>
media-video/manimgl/manimgl-9999.ebuild | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/media-video/manimgl/manimgl-9999.ebuild
b/media-video/manimgl/manimgl-9999.ebuild
index dfc646d1e5..f574a2feeb 100644
--- a/media-video/manimgl/manimgl-9999.ebuild
+++ b/media-video/manimgl/manimgl-9999.ebuild
@@ -3,10 +3,18 @@
EAPI=8
+DOCS_BUILDER="sphinx"
+DOCS_DIR="docs/source"
+DOCS_DEPEND="
+ dev-python/furo
+ dev-python/jinja2-cli
+ dev-python/sphinx-copybutton
+"
+
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
-inherit distutils-r1 git-r3
+inherit distutils-r1 git-r3 docs
DESCRIPTION="Animation engine for explanatory math videos"
HOMEPAGE="https://github.com/3b1b/manim https://pypi.org/project/manimgl/"
@@ -21,7 +29,6 @@ fi
LICENSE="MIT"
SLOT="0"
-IUSE="doc"
RDEPEND="
dev-python/colour[${PYTHON_USEDEP}]
@@ -55,28 +62,14 @@ RDEPEND="
dev-python/typing-extensions[${PYTHON_USEDEP}]
' python3_{7..10})
"
-# typing-extensions is needed for python < 3.11
+# typing-extensions is only needed for python < 3.11
# so, only python3.10 should work too (because of PYTHON_COMPAT)
-BDEPEND="
- doc? (
- dev-python/furo[${PYTHON_USEDEP}]
- dev-python/jinja2-cli[${PYTHON_USEDEP}]
- dev-python/sphinx[${PYTHON_USEDEP}]
- dev-python/sphinx-copybutton[${PYTHON_USEDEP}]
- )
-"
-
DEPEND="${RDEPEND}"
-python_compile_all() {
- use doc && emake -C "${S}/docs" man && mv "${S}/docs/build/man/manim.1"
"${S}/docs/build/man/${PN}.1"
-}
-
python_install_all() {
- distutils-r1_python_install_all
+ default
if use doc; then
- doman "${S}/docs/build/man/${PN}.1"
docinto examples
dodoc example_scenes.py
dodoc docs/example.py