media-video/baka-mplayer: QA fix for xdg icon cache update
authorChristopher Steward <cstew764@gmail.com>
Fri, 3 Jan 2020 22:55:09 +0000 (17:55 -0500)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 21 Jan 2020 19:10:49 +0000 (20:10 +0100)
Simple fix of QA issue reported by emerge, where
xdg_icon_cache_update() has to be called after installing
and after removing.

Signed-off-by: Christopher Steward <cstew764@gmail.com>
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-video/baka-mplayer/baka-mplayer-2.0.4-r1.ebuild
media-video/baka-mplayer/baka-mplayer-9999.ebuild

index e13186333ae318cb5917e5cb9cfdef8b42ed439a..2dabd87c4c276a996a77021760010d4cf4815c9d 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit qmake-utils
+inherit qmake-utils xdg-utils
 
 DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
 HOMEPAGE="http://bakamplayer.u8sand.net/"
@@ -16,8 +16,8 @@ IUSE=""
 
 BDEPEND="
        dev-qt/linguist-tools:5
-       virtual/pkgconfig
-"
+       virtual/pkgconfig"
+
 RDEPEND="
        dev-qt/qtcore:5
        dev-qt/qtgui:5
@@ -49,3 +49,11 @@ src_configure() {
                lupdate="$(qt5_get_bindir)"/lupdate \
                src/Baka-MPlayer.pro
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}
index 73e27a96b7cc11ff2c46e4e75fd415090b93d6a5..1351f8663d3e111dda5cc1d6ae6b7c8e808564d6 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit qmake-utils git-r3
+inherit qmake-utils git-r3 xdg-utils
 
 DESCRIPTION="Cross-platform libmpv-based multimedia player with uncluttered design"
 HOMEPAGE="http://bakamplayer.u8sand.net/"
@@ -18,7 +18,8 @@ BDEPEND="
        dev-qt/linguist-tools:5
        virtual/pkgconfig"
 
-RDEPEND="dev-qt/qtcore:5
+RDEPEND="
+       dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtnetwork:5
        dev-qt/qtsvg:5
@@ -46,3 +47,11 @@ src_configure() {
                lupdate="$(qt5_get_bindir)"/lupdate \
                src/Baka-MPlayer.pro
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}