commit:     67633425b70f7dd5d3b29094fa998f50762c1aae
Author:     Alexander Golubev <fatzer2 <AT> gmail <DOT> com>
AuthorDate: Sat Nov  9 14:50:47 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Nov  9 14:50:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=67633425

media-gfx/pdf4qt: update xdg info on install

Also sync release and live ebuilds

Signed-off-by: Alexander Golubev <fatzer2 <AT> gmail.com>

 media-gfx/pdf4qt/pdf4qt-1.4.0.0.ebuild | 12 +++++++++++-
 media-gfx/pdf4qt/pdf4qt-9999.ebuild    | 21 +++++++++++++++++----
 2 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/media-gfx/pdf4qt/pdf4qt-1.4.0.0.ebuild 
b/media-gfx/pdf4qt/pdf4qt-1.4.0.0.ebuild
index cbe3c0cd3..f8328f11c 100644
--- a/media-gfx/pdf4qt/pdf4qt-1.4.0.0.ebuild
+++ b/media-gfx/pdf4qt/pdf4qt-1.4.0.0.ebuild
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit cmake
+inherit cmake xdg-utils
 
 DESCRIPTION="Open source PDF WYSIWYG editor based on Qt"
 HOMEPAGE="https://jakubmelka.github.io/";
@@ -53,3 +53,13 @@ src_configure() {
        )
        cmake_src_configure
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}

diff --git a/media-gfx/pdf4qt/pdf4qt-9999.ebuild 
b/media-gfx/pdf4qt/pdf4qt-9999.ebuild
index b514388e5..de393ae20 100644
--- a/media-gfx/pdf4qt/pdf4qt-9999.ebuild
+++ b/media-gfx/pdf4qt/pdf4qt-9999.ebuild
@@ -2,17 +2,20 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
-inherit cmake
+inherit cmake xdg-utils
 
 DESCRIPTION="Open source PDF WYSIWYG editor based on Qt"
 HOMEPAGE="https://jakubmelka.github.io/";
+MY_PN="${PN^^}"
 if [[ ${PV} == 9999 ]]; then
        inherit git-r3
-       EGIT_REPO_URI="https://github.com/JakubMelka/${PN^^}";
+       EGIT_REPO_URI="https://github.com/JakubMelka/${MY_PN}";
 else
-       
SRC_URI="https://github.com/JakubMelka/${PN^^}/archive/refs/tags/v${PV}.tar.gz
-               -> ${P}.tar.gz"
+       MY_P="${MY_PN}-${PV}"
+       
SRC_URI="https://github.com/JakubMelka/${MY_PN}/archive/refs/tags/v${PV}.tar.gz
+               -> ${MY_P}.tar.gz"
        KEYWORDS="~amd64"
+       S=${WORKDIR}/${MY_P}
 fi
 
 LICENSE="LGPL-3+"
@@ -51,3 +54,13 @@ src_configure() {
        )
        cmake_src_configure
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+       xdg_desktop_database_update
+}

Reply via email to