Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/krop/
Date: Sun, 07 Jan 2018 14:51:24
Message-Id: 1515336661.5ec0b11c423fcd355d3057c39b4cdcb67cb993ea.asturm@gentoo
1 commit: 5ec0b11c423fcd355d3057c39b4cdcb67cb993ea
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 7 14:46:21 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 7 14:51:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ec0b11c
7
8 app-text/krop: Run xdg_{desktop,mimeinfo}_database_update
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-text/krop/krop-0.4.13.5.ebuild | 12 +++++++++++-
13 1 file changed, 11 insertions(+), 1 deletion(-)
14
15 diff --git a/app-text/krop/krop-0.4.13.5.ebuild b/app-text/krop/krop-0.4.13.5.ebuild
16 index f2542d1c596..108c5f32c84 100644
17 --- a/app-text/krop/krop-0.4.13.5.ebuild
18 +++ b/app-text/krop/krop-0.4.13.5.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=6
21 PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
22
23 -inherit eutils distutils-r1
24 +inherit eutils distutils-r1 xdg-utils
25
26 DESCRIPTION="A tool to crop PDF files"
27 HOMEPAGE="http://arminstraub.com/software/krop"
28 @@ -25,3 +25,13 @@ src_install() {
29 distutils-r1_src_install
30 domenu "${WORKDIR}/${P}/${PN}.desktop"
31 }
32 +
33 +pkg_postinst() {
34 + xdg_mimeinfo_database_update
35 + xdg_desktop_database_update
36 +}
37 +
38 +pkg_postrm() {
39 + xdg_mimeinfo_database_update
40 + xdg_desktop_database_update
41 +}