git: 77ff53e63fd9 - main - devel/py-ipympl: update to 0.8.8

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Thu, 10 Mar 2022 17:33:11 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=77ff53e63fd9f8e84d1571f32ede31f4ce7bfd83

commit 77ff53e63fd9f8e84d1571f32ede31f4ce7bfd83
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2022-03-10 17:31:57 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2022-03-10 17:31:57 +0000

    devel/py-ipympl: update to 0.8.8
---
 devel/py-ipympl/Makefile  | 20 +++++++++++++++++---
 devel/py-ipympl/distinfo  |  6 +++---
 devel/py-ipympl/pkg-plist |  4 ++++
 3 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/devel/py-ipympl/Makefile b/devel/py-ipympl/Makefile
index 81cffdd64d72..4187a311a0a1 100644
--- a/devel/py-ipympl/Makefile
+++ b/devel/py-ipympl/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ipympl
-DISTVERSION=	0.7.0
+DISTVERSION=	0.8.8
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,10 +12,24 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}jupyter-packaging>0:devel/py-jupyter-packaging@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ipykernel5>=4.7:devel/py-ipykernel5@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}ipywidgets>7.5.0:devel/py-ipywidgets@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}matplotlib>2.0.0:math/py-matplotlib@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}ipywidgets>=7.6.0:devel/py-ipywidgets@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}matplotlib>=2.0.0:math/py-matplotlib@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist distutils
 
+post-install:
+# Enable extension for jupyter lab and notebook
+	${MKDIR} ${STAGEDIR}${PREFIX}/etc/jupyter/nbconfig/notebook.d && \
+	${INSTALL_DATA} ${WRKSRC}/jupyter-matplotlib.json \
+		${STAGEDIR}${PREFIX}/etc/jupyter/nbconfig/notebook.d/
+	${INSTALL_DATA}  ${WRKSRC}/ipympl/labextension/package.json \
+		${STAGEDIR}${PYTHON_SITELIBDIR}/ipympl/nbextension/
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/jupyter/labextensions/ && \
+	${LN} -sf ${PYTHON_SITELIBDIR}/ipympl/labextension \
+		${STAGEDIR}${PREFIX}/share/jupyter/labextensions/jupyter-matplotlib
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/jupyter/nbextensions/ && \
+	${LN} -sf ${PYTHON_SITELIBDIR}/ipympl/nbextension \
+		${STAGEDIR}${PREFIX}/share/jupyter/nbextensions/jupyter-matplotlib
+
 .include <bsd.port.mk>
diff --git a/devel/py-ipympl/distinfo b/devel/py-ipympl/distinfo
index 3f003c3c9105..f7acf76b1f82 100644
--- a/devel/py-ipympl/distinfo
+++ b/devel/py-ipympl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1616848488
-SHA256 (ipympl-0.7.0.tar.gz) = f0f1f356d8cb9d4fb51bb86dbbf837c190145316cb72f66081872ebc4d6db0a1
-SIZE (ipympl-0.7.0.tar.gz) = 56729
+TIMESTAMP = 1645303955
+SHA256 (ipympl-0.8.8.tar.gz) = 5bf5d780b07fafe7924922ac6b2f3abd22721f341e5e196b3b82737dfbd0e1c9
+SIZE (ipympl-0.8.8.tar.gz) = 501588
diff --git a/devel/py-ipympl/pkg-plist b/devel/py-ipympl/pkg-plist
new file mode 100644
index 000000000000..c2d944b67976
--- /dev/null
+++ b/devel/py-ipympl/pkg-plist
@@ -0,0 +1,4 @@
+etc/jupyter/nbconfig/notebook.d/jupyter-matplotlib.json
+%%PYTHON_SITELIBDIR%%/ipympl/nbextension/package.json
+share/jupyter/labextensions/jupyter-matplotlib
+share/jupyter/nbextensions/jupyter-matplotlib