commit:     817ff99534427a77a9f04b8e3b1b0ccad9f544f7
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  8 10:07:53 2019 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Dec  8 10:08:16 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=817ff995

sci-electronics/librepcb: use xdg-utils.eclass

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sci-electronics/librepcb/librepcb-0.1.3.ebuild | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/sci-electronics/librepcb/librepcb-0.1.3.ebuild 
b/sci-electronics/librepcb/librepcb-0.1.3.ebuild
index 50dfacb22b3..fe132f05370 100644
--- a/sci-electronics/librepcb/librepcb-0.1.3.ebuild
+++ b/sci-electronics/librepcb/librepcb-0.1.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit qmake-utils
+inherit qmake-utils xdg-utils
 
 DESCRIPTION="Free EDA software to develop printed circuit boards"
 HOMEPAGE="https://librepcb.org/";
@@ -39,3 +39,15 @@ src_configure() {
 src_install() {
        emake INSTALL_ROOT="${D}" install
 }
+
+pkg_postinst() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+       xdg_desktop_database_update
+       xdg_icon_cache_update
+       xdg_mimeinfo_database_update
+}

Reply via email to