commit: cac5f6d9f893dae6998164d4a573c64285ea05ca Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> AuthorDate: Sun Mar 3 19:11:38 2019 +0000 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> CommitDate: Sun Mar 3 19:12:06 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cac5f6d9
media-video/smplayer: Bump to EAPI-7 - 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 <AT> gentoo.org> media-video/smplayer/smplayer-19.1.0-r1.ebuild | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/media-video/smplayer/smplayer-19.1.0-r1.ebuild b/media-video/smplayer/smplayer-19.1.0-r1.ebuild index ed890bb8736..a75e7524fb1 100644 --- a/media-video/smplayer/smplayer-19.1.0-r1.ebuild +++ b/media-video/smplayer/smplayer-19.1.0-r1.ebuild @@ -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 }