www-client/qupzilla: enhance with xdg_desktop_database_update
authorStefanCristian <steven.darklight@gmail.com>
Mon, 11 Dec 2017 22:06:30 +0000 (00:06 +0200)
committerMichael Palimaka <kensington@gentoo.org>
Thu, 21 Dec 2017 09:44:09 +0000 (20:44 +1100)
Closes: https://bugs.gentoo.org/640776
Closes: https://github.com/gentoo/gentoo/pull/6525

www-client/qupzilla/qupzilla-2.1.2.ebuild

index c17924c3323c7d9ec8363c8a903e9dc603b0346c..2ea1fc82dbec7b8d2a8faf0a3a1765819a61e546 100644 (file)
@@ -12,7 +12,7 @@ PLOCALES="ar_SA bg_BG ca_ES cs_CZ da_DK de_DE el_GR es_ES es_MX es_VE eu_ES
 PLUGINS_HASH='c332d306c0f6cf645c75eaf198d2fc5e12339e9e'
 PLUGINS_VERSION='2016.05.02' # if there are no updates, we can use the older archive
 
-inherit l10n qmake-utils
+inherit l10n qmake-utils xdg-utils
 
 if [[ ${PV} == *9999 ]]; then
        inherit git-r3
@@ -107,3 +107,11 @@ src_install() {
        emake INSTALL_ROOT="${D}" install
        einstalldocs
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+}