1 |
commit: 0f85af9e53787fee0a45049ae32c9934d2328bc1 |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 14 17:24:02 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 14 17:24:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f85af9e |
7 |
|
8 |
x11-libs/gtkdatabox: update XDG icon cache if necessary |
9 |
|
10 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
11 |
|
12 |
...tkdatabox-1.0.0.ebuild => gtkdatabox-1.0.0-r1.ebuild} | 16 ++++++++++++++++ |
13 |
1 file changed, 16 insertions(+) |
14 |
|
15 |
diff --git a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild |
16 |
similarity index 86% |
17 |
rename from x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild |
18 |
rename to x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild |
19 |
index 3f9a8d020d23..e99b9d199435 100644 |
20 |
--- a/x11-libs/gtkdatabox/gtkdatabox-1.0.0.ebuild |
21 |
+++ b/x11-libs/gtkdatabox/gtkdatabox-1.0.0-r1.ebuild |
22 |
@@ -3,6 +3,8 @@ |
23 |
|
24 |
EAPI=8 |
25 |
|
26 |
+inherit xdg-utils |
27 |
+ |
28 |
DESCRIPTION="Gtk+ Widgets for live display of large amounts of fluctuating numerical data" |
29 |
HOMEPAGE="https://sourceforge.net/projects/gtkdatabox/" |
30 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
31 |
@@ -54,3 +56,17 @@ src_install() { |
32 |
dodoc "${S}"/examples/* |
33 |
fi |
34 |
} |
35 |
+ |
36 |
+maybe_update_xdg_icon_cache() { |
37 |
+ if use glade; then |
38 |
+ xdg_icon_cache_update |
39 |
+ fi |
40 |
+} |
41 |
+ |
42 |
+pkg_postinst() { |
43 |
+ maybe_update_xdg_icon_cache |
44 |
+} |
45 |
+ |
46 |
+pkg_postrm() { |
47 |
+ maybe_update_xdg_icon_cache |
48 |
+} |