kde5.eclass: port from fdo-mime to xdg
authorMichael Palimaka <kensington@gentoo.org>
Fri, 29 Jan 2016 10:04:24 +0000 (21:04 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Sun, 14 Feb 2016 16:45:59 +0000 (03:45 +1100)
This will ensure that both the desktop database and the mime database will
always be updated, with the added benefit that the update will only be
triggered if the relevant files are installed.

eclass/kde5.eclass

index 2f60d449ba20842080b40b23caed72dbe20efd50..1caeb38e1692ef3d8dfa3a27c5c6d2bd4aa4d715 100644 (file)
@@ -19,7 +19,7 @@ _KDE5_ECLASS=1
 # for tests you should proceed with setting VIRTUALX_REQUIRED=test.
 : ${VIRTUALX_REQUIRED:=manual}
 
-inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx
+inherit cmake-utils eutils flag-o-matic gnome2-utils kde5-functions versionator virtualx xdg
 
 if [[ ${KDE_BUILD_TYPE} = live ]]; then
        case ${KDE_SCM} in
@@ -574,6 +574,7 @@ kde5_pkg_preinst() {
        debug-print-function ${FUNCNAME} "$@"
 
        gnome2_icon_savelist
+       xdg_pkg_preinst
 }
 
 # @FUNCTION: kde5_pkg_postinst
@@ -583,7 +584,7 @@ kde5_pkg_postinst() {
        debug-print-function ${FUNCNAME} "$@"
 
        gnome2_icon_cache_update
-       fdo-mime_desktop_database_update
+       xdg_pkg_postinst
 }
 
 # @FUNCTION: kde5_pkg_postrm
@@ -593,7 +594,7 @@ kde5_pkg_postrm() {
        debug-print-function ${FUNCNAME} "$@"
 
        gnome2_icon_cache_update
-       fdo-mime_desktop_database_update
+       xdg_pkg_postrm
 }
 
 fi