media-video/smplayer: Bump to EAPI-7
authorLars Wendler <polynomial-c@gentoo.org>
Sun, 3 Mar 2019 19:11:38 +0000 (20:11 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Sun, 3 Mar 2019 19:12:06 +0000 (20:12 +0100)
- prefer "xdg" over "gnome2" and xdg-utils" eclass

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
media-video/smplayer/smplayer-19.1.0-r1.ebuild

index ed890bb87369b2c8069e7c4cb55efc8568555807..a75e7524fb1ef46e5073e781a2beb1eb5d74dccb 100644 (file)
@@ -1,14 +1,14 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 PLOCALES="am ar_SY ar bg ca cs da de el en_GB en en_US es et eu fa fi fr gl
 he_IL hr hu id it ja ka ko ku lt mk ms_MY nl nn_NO pl pt_BR pt ro_RO ru_RU
 sk sl_SI sq_AL sr sv th tr uk_UA uz vi_VN zh_CN zh_TW"
 PLOCALE_BACKUP="en_US"
 
-inherit gnome2-utils l10n qmake-utils toolchain-funcs xdg-utils
+inherit l10n qmake-utils toolchain-funcs xdg
 
 DESCRIPTION="Great Qt GUI front-end for mplayer/mpv"
 HOMEPAGE="http://www.smplayer.eu/"
@@ -120,15 +120,17 @@ src_install() {
        default
 }
 
+pkg_preinst() {
+       xdg_pkg_preinst
+}
+
 pkg_postinst() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       xdg_pkg_postinst
 
        elog "If you want URL support with media-video/mpv, please install"
        elog "net-misc/youtube-dl."
 }
 
 pkg_postrm() {
-       gnome2_icon_cache_update
-       xdg_desktop_database_update
+       xdg_pkg_postrm
 }