commit: 71d0d48fe392b55b1ed9fdd3727d9dd4a9310ca2 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jun 19 21:26:19 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jun 19 21:26:52 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71d0d48f
app-text/ansifilter: avoid dep on glib for headless Signed-off-by: Sam James <sam <AT> gentoo.org> app-text/ansifilter/ansifilter-2.20.ebuild | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app-text/ansifilter/ansifilter-2.20.ebuild b/app-text/ansifilter/ansifilter-2.20.ebuild index a317a56f20a2..7eee836705dd 100644 --- a/app-text/ansifilter/ansifilter-2.20.ebuild +++ b/app-text/ansifilter/ansifilter-2.20.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit desktop toolchain-funcs qmake-utils xdg +inherit desktop toolchain-funcs qmake-utils xdg-utils DESCRIPTION="Handles text files containing ANSI terminal escape codes" HOMEPAGE="http://www.andre-simon.de/" @@ -72,13 +72,22 @@ src_install() { } pkg_preinst() { - use gui && xdg_pkg_preinst + if use gui; then + xdg_desktop_database_update + xdg_icon_cache_update + fi } pkg_postrm() { - use gui && xdg_pkg_postrm + if use gui; then + xdg_desktop_database_update + xdg_icon_cache_update + fi } pkg_postinst() { - use gui && xdg_pkg_postinst + if use gui; then + xdg_desktop_database_update + xdg_icon_cache_update + fi }
