From 5ec0b11c423fcd355d3057c39b4cdcb67cb993ea Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 7 Jan 2018 15:46:21 +0100 Subject: 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 f2542d1c5965..108c5f32c840 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 +} -- cgit v1.2.3-65-gdbad