media-video/mkvtoolnix: update .desktop and mime databases
authorFrancesco Turco <fturco@fastmail.fm>
Thu, 4 Jan 2018 20:06:28 +0000 (21:06 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 21 Jan 2018 12:19:16 +0000 (13:19 +0100)
Bug: https://bugs.gentoo.org/643328

media-video/mkvtoolnix/mkvtoolnix-9999.ebuild

index d58ac973b2d36560a9f20cc8e962364192da4f8a..bbf85f64514a5c2b6098d1e92380e1936479d040 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit toolchain-funcs versionator multiprocessing
+inherit toolchain-funcs versionator multiprocessing xdg-utils
 
 if [[ ${PV} == "9999" ]] ; then
        EGIT_REPO_URI="https://gitlab.com/mbunkus/mkvtoolnix.git"
@@ -109,3 +109,13 @@ src_install() {
        einstalldocs
        doman doc/man/*.1
 }
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
+
+pkg_postinst() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}