commit:     370a505a4a4c48645cbb1d911446190fcc1a4c23
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 22 23:16:37 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 22 23:53:16 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=370a505a

dev-python/notebook: Add xdg postinst/postrm

Closes: https://bugs.gentoo.org/777798
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/notebook/notebook-6.3.0.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-python/notebook/notebook-6.3.0.ebuild 
b/dev-python/notebook/notebook-6.3.0.ebuild
index 79f3213aac1..9de1aeb1b61 100644
--- a/dev-python/notebook/notebook-6.3.0.ebuild
+++ b/dev-python/notebook/notebook-6.3.0.ebuild
@@ -7,7 +7,7 @@ DISTUTILS_USE_SETUPTOOLS=rdepend
 PYTHON_COMPAT=( python3_{7..9} )
 PYTHON_REQ_USE="threads(+)"
 
-inherit distutils-r1
+inherit distutils-r1 xdg-utils
 
 DESCRIPTION="Jupyter Interactive Notebook"
 HOMEPAGE="https://jupyter.org";
@@ -87,3 +87,13 @@ pkg_preinst() {
        # remove old mathjax folder if present
        rm -rf 
"${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || 
die
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+}

Reply via email to