media-gfx/pdf4qt: update xdg info on install

Also sync release and live ebuilds

Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
This commit is contained in:
Alexander Golubev
2024-11-09 17:50:47 +03:00
parent 7ba65dc3d4
commit 67633425b7
2 changed files with 28 additions and 5 deletions

View File

@@ -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
}

View File

@@ -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
}