commit:     5ec0b11c423fcd355d3057c39b4cdcb67cb993ea
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  7 14:46:21 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  7 14:51:01 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec0b11c

app-text/krop: Run xdg_{desktop,mimeinfo}_database_update

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-text/krop/krop-0.4.13.5.ebuild | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/app-text/krop/krop-0.4.13.5.ebuild 
b/app-text/krop/krop-0.4.13.5.ebuild
index f2542d1c596..108c5f32c84 100644
--- a/app-text/krop/krop-0.4.13.5.ebuild
+++ b/app-text/krop/krop-0.4.13.5.ebuild
@@ -4,7 +4,7 @@
 EAPI=6
 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
 
-inherit eutils distutils-r1
+inherit eutils distutils-r1 xdg-utils
 
 DESCRIPTION="A tool to crop PDF files"
 HOMEPAGE="http://arminstraub.com/software/krop";
@@ -25,3 +25,13 @@ src_install() {
        distutils-r1_src_install
        domenu "${WORKDIR}/${P}/${PN}.desktop"
 }
+
+pkg_postinst() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}

Reply via email to