media-sound/musescore: Run xdg_{desktop,mimeinfo}_database_update
authorAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Aug 2018 21:01:52 +0000 (23:01 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Aug 2018 21:23:03 +0000 (23:23 +0200)
Package-Manager: Portage-2.3.48, Repoman-2.3.10

media-sound/musescore/musescore-2.1.0-r1.ebuild
media-sound/musescore/musescore-9999.ebuild

index b197c6d95f731db6037befe5057a720acca10997..de76c1939f73a2bdf842639694b6e81de15235a5 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils
+inherit cmake-utils xdg-utils
 
 DESCRIPTION="WYSIWYG Music Score Typesetter"
 HOMEPAGE="https://musescore.org/"
@@ -71,3 +71,13 @@ src_compile() {
        cmake-utils_src_make -j1 lrelease manpages
        cmake-utils_src_compile
 }
+
+pkg_postinst() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
index 619e7f71c5b6c5722b0463ccaa43d43eec94c32a..de5c5615bc0ca46a339f471b1797411a27263e1d 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils git-r3
+inherit cmake-utils git-r3 xdg-utils
 
 DESCRIPTION="WYSIWYG Music Score Typesetter"
 HOMEPAGE="https://musescore.org/"
@@ -73,3 +73,13 @@ src_compile() {
        cmake-utils_src_make -j1 lrelease manpages
        cmake-utils_src_compile
 }
+
+pkg_postinst() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_mimeinfo_database_update
+       xdg_desktop_database_update
+}