From cd482d64b5777de2eda8d32168194f076fe4ee03 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sun, 5 Nov 2023 18:35:22 -0500 Subject: [PATCH] app-text/calibre: use modern xdg pkg_* approach We inherit xdg and let it take care of defining these phases, rather than inheriting a low-level eclass and manually performing it. Signed-off-by: Eli Schwartz Signed-off-by: Zac Medico --- app-text/calibre/calibre-6.29.0.ebuild | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/app-text/calibre/calibre-6.29.0.ebuild b/app-text/calibre/calibre-6.29.0.ebuild index d6c474831e8cc..7d036b7860fdd 100644 --- a/app-text/calibre/calibre-6.29.0.ebuild +++ b/app-text/calibre/calibre-6.29.0.ebuild @@ -6,7 +6,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{10..11} ) PYTHON_REQ_USE="sqlite,ssl" -inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg-utils +inherit edo toolchain-funcs python-single-r1 qmake-utils verify-sig xdg DESCRIPTION="Ebook management application" HOMEPAGE="https://calibre-ebook.com/" @@ -241,15 +241,3 @@ src_install() { newinitd "${FILESDIR}"/calibre-server-3.init calibre-server newconfd "${FILESDIR}"/calibre-server-3.conf calibre-server } - -pkg_postinst() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_icon_cache_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_mimeinfo_database_update - xdg_icon_cache_update -}