commit:     4e5b52c6563b8232a57d154177b5de121684c822
Author:     Henri Gasc <gasc <AT> eurecom <DOT> fr>
AuthorDate: Thu Dec  5 09:37:07 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Dec  5 09:37:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e5b52c6

media-video/manimgl: update ebuild, add 1.7.1

Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr>

 media-video/manimgl/Manifest                       |  1 +
 media-video/manimgl/files/drop-pyrr.patch          | 26 ++++++++++++++++++++++
 .../{manimgl-9999.ebuild => manimgl-1.7.1.ebuild}  | 17 +++++++-------
 media-video/manimgl/manimgl-9999.ebuild            | 15 +++++++------
 4 files changed, 44 insertions(+), 15 deletions(-)

diff --git a/media-video/manimgl/Manifest b/media-video/manimgl/Manifest
new file mode 100644
index 000000000..8d2a7543d
--- /dev/null
+++ b/media-video/manimgl/Manifest
@@ -0,0 +1 @@
+DIST manimgl-1.7.1.gh.tar.gz 1044396 BLAKE2B 
7021b20445ef9fdd2ffc718cd0bcc27cd5f0c9d8be7d03fc4fdbd854ff6a53fe4c6a1bb3e04b14a3eae8f169b2a2f18f3a091c32ff175ffd045b7033c0a96aa6
 SHA512 
ed55ef466fc92a893948159fc84c0ca50b4f5ec54c2482ba81eda04df2d83660598c4e3b438d58ca9e73842baba5b7ff009811c4f85212b4e56a020e8613adf5

diff --git a/media-video/manimgl/files/drop-pyrr.patch 
b/media-video/manimgl/files/drop-pyrr.patch
new file mode 100644
index 000000000..46a106f8e
--- /dev/null
+++ b/media-video/manimgl/files/drop-pyrr.patch
@@ -0,0 +1,26 @@
+Remove the dependency on pyrr
+https://github.com/3b1b/manim/pull/2256
+diff --git a/manimlib/camera/camera_frame.py b/manimlib/camera/camera_frame.py
+index 648d55cdba..62ca4935c2 100644
+--- a/manimlib/camera/camera_frame.py
++++ b/manimlib/camera/camera_frame.py
+@@ -5,7 +5,6 @@
+ 
+ import numpy as np
+ from scipy.spatial.transform import Rotation
+-from pyrr import Matrix44
+ 
+ from manimlib.constants import DEGREES, RADIANS
+ from manimlib.constants import FRAME_SHAPE
+diff --git a/requirements.txt b/requirements.txt
+index 0737d3fc5d..161fbd9816 100644
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -13,7 +13,6 @@ pydub
+ pygments
+ PyOpenGL
+ pyperclip
+-pyrr
+ pyyaml
+ rich
+ scipy

diff --git a/media-video/manimgl/manimgl-9999.ebuild 
b/media-video/manimgl/manimgl-1.7.1.ebuild
similarity index 88%
copy from media-video/manimgl/manimgl-9999.ebuild
copy to media-video/manimgl/manimgl-1.7.1.ebuild
index 62b1af845..ca97f8420 100644
--- a/media-video/manimgl/manimgl-9999.ebuild
+++ b/media-video/manimgl/manimgl-1.7.1.ebuild
@@ -14,7 +14,7 @@ DOCS_DEPEND="
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{10..12} )
 
-inherit distutils-r1 docs git-r3
+inherit distutils-r1 docs
 
 DESCRIPTION="Animation engine for explanatory math videos"
 HOMEPAGE="https://github.com/3b1b/manim https://pypi.org/project/manimgl/";
@@ -30,12 +30,15 @@ fi
 LICENSE="MIT"
 SLOT="0"
 
+PATCHES=( "${FILESDIR}/drop-pyrr.patch" )
+
 RDEPEND="
        dev-python/colour[${PYTHON_USEDEP}]
        >=dev-python/ipython-8.18.0[${PYTHON_USEDEP}]
        dev-python/isosurfaces[${PYTHON_USEDEP}]
        dev-python/fonttools[${PYTHON_USEDEP}]
        >=dev-python/ManimPango-0.6.0[${PYTHON_USEDEP}]
+       dev-python/mapbox-earcut[${PYTHON_USEDEP}]
        dev-python/matplotlib[${PYTHON_USEDEP}]
        dev-python/moderngl[${PYTHON_USEDEP}]
        dev-python/moderngl-window[${PYTHON_USEDEP}]
@@ -54,7 +57,7 @@ RDEPEND="
        dev-python/sympy[${PYTHON_USEDEP}]
        dev-python/tqdm[${PYTHON_USEDEP}]
        dev-python/validators[${PYTHON_USEDEP}]
-       app-text/texlive
+       app-text/texlive[extra]
        media-video/ffmpeg
        virtual/opengl
        x11-libs/pango
@@ -69,10 +72,8 @@ DEPEND="${RDEPEND}"
 
 python_install_all() {
        default
-       if use doc; then
-               docinto examples
-               dodoc example_scenes.py
-               dodoc docs/example.py
-               docompress -x /usr/share/doc/${PF}/examples
-       fi
+       docinto examples
+       dodoc example_scenes.py
+       dodoc docs/example.py
+       docompress -x /usr/share/doc/${PF}/examples
 }

diff --git a/media-video/manimgl/manimgl-9999.ebuild 
b/media-video/manimgl/manimgl-9999.ebuild
index 62b1af845..28c151e09 100644
--- a/media-video/manimgl/manimgl-9999.ebuild
+++ b/media-video/manimgl/manimgl-9999.ebuild
@@ -30,12 +30,15 @@ fi
 LICENSE="MIT"
 SLOT="0"
 
+PATCHES=( "${FILESDIR}/drop-pyrr.patch" )
+
 RDEPEND="
        dev-python/colour[${PYTHON_USEDEP}]
        >=dev-python/ipython-8.18.0[${PYTHON_USEDEP}]
        dev-python/isosurfaces[${PYTHON_USEDEP}]
        dev-python/fonttools[${PYTHON_USEDEP}]
        >=dev-python/ManimPango-0.6.0[${PYTHON_USEDEP}]
+       dev-python/mapbox-earcut[${PYTHON_USEDEP}]
        dev-python/matplotlib[${PYTHON_USEDEP}]
        dev-python/moderngl[${PYTHON_USEDEP}]
        dev-python/moderngl-window[${PYTHON_USEDEP}]
@@ -54,7 +57,7 @@ RDEPEND="
        dev-python/sympy[${PYTHON_USEDEP}]
        dev-python/tqdm[${PYTHON_USEDEP}]
        dev-python/validators[${PYTHON_USEDEP}]
-       app-text/texlive
+       app-text/texlive[extra]
        media-video/ffmpeg
        virtual/opengl
        x11-libs/pango
@@ -69,10 +72,8 @@ DEPEND="${RDEPEND}"
 
 python_install_all() {
        default
-       if use doc; then
-               docinto examples
-               dodoc example_scenes.py
-               dodoc docs/example.py
-               docompress -x /usr/share/doc/${PF}/examples
-       fi
+       docinto examples
+       dodoc example_scenes.py
+       dodoc docs/example.py
+       docompress -x /usr/share/doc/${PF}/examples
 }

Reply via email to