commit:     b09830e960239bd340dcf95556774bf3ea1c4c48
Author:     William Harrell <wharrell1 <AT> protonmail <DOT> com>
AuthorDate: Tue Apr  2 01:13:00 2024 +0000
Commit:     William Harrell <wharrell1 <AT> protonmail <DOT> com>
CommitDate: Tue Apr  2 01:13:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b09830e9

media-video/walksnail-osd-tool: update xdg icons in postinst

Signed-off-by: William Harrell <wharrell1 <AT> protonmail.com>

 .../walksnail-osd-tool/walksnail-osd-tool-0.3.0.ebuild    | 14 +++++++++++---
 .../walksnail-osd-tool/walksnail-osd-tool-9999.ebuild     | 15 ++++++++++++---
 2 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/media-video/walksnail-osd-tool/walksnail-osd-tool-0.3.0.ebuild 
b/media-video/walksnail-osd-tool/walksnail-osd-tool-0.3.0.ebuild
index 84515c2c2d..7f9f6071b0 100644
--- a/media-video/walksnail-osd-tool/walksnail-osd-tool-0.3.0.ebuild
+++ b/media-video/walksnail-osd-tool/walksnail-osd-tool-0.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -474,7 +474,7 @@ declare -A GIT_CRATES=(
        
[poll-promise]="https://github.com/EmbarkStudios/poll-promise;b493586107b0e508860aa2e9d18049fd8cd9d13f";
 )
 
-inherit cargo desktop
+inherit cargo desktop xdg-utils
 
 DESCRIPTION="Tool for rendering OSDs over Walksnail DVR recordings"
 HOMEPAGE="https://github.com/avsaase/walksnail-osd-tool";
@@ -485,7 +485,6 @@ KEYWORDS="~amd64"
 LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 
GPL-3 ISC UbuntuFontLicense-1.0 MIT MPL-2.0 OFL-1.1 Unicode-DFS-2016 Unlicense 
XC ZLIB"
 SLOT="0"
 
-DEPEND="x11-libs/gtk+"
 RDEPEND="${DEPEND}
        media-video/ffmpeg"
 BDEPEND=">=virtual/rust-1.71.1-r1"
@@ -510,3 +509,12 @@ src_install() {
        doicon -s scalable walksnail-osd-tool.svg
        make_desktop_entry walksnail-osd-tool 'Walksnail OSD Tool' 
walksnail-osd-tool
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}
+

diff --git a/media-video/walksnail-osd-tool/walksnail-osd-tool-9999.ebuild 
b/media-video/walksnail-osd-tool/walksnail-osd-tool-9999.ebuild
index 87130b0988..df698e4320 100644
--- a/media-video/walksnail-osd-tool/walksnail-osd-tool-9999.ebuild
+++ b/media-video/walksnail-osd-tool/walksnail-osd-tool-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cargo desktop git-r3
+inherit cargo desktop git-r3 xdg-utils
 
 DESCRIPTION="Tool for rendering OSDs over Walksnail DVR recordings"
 HOMEPAGE="https://github.com/avsaase/walksnail-osd-tool";
@@ -12,7 +12,7 @@ 
EGIT_REPO_URI="https://github.com/avsaase/walksnail-osd-tool.git";
 LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 
GPL-3 ISC UbuntuFontLicense-1.0 MIT MPL-2.0 OFL-1.1 Unicode-DFS-2016 Unlicense 
XC ZLIB"
 SLOT="0"
 
-DEPEND="x11-libs/gtk+"
+DEPEND=""
 RDEPEND="${DEPEND}
        media-video/ffmpeg"
 BDEPEND=">=virtual/rust-1.71.1-r1"
@@ -33,3 +33,12 @@ src_install() {
        doicon -s scalable walksnail-osd-tool.svg
        make_desktop_entry walksnail-osd-tool 'Walksnail OSD Tool' 
walksnail-osd-tool
 }
+
+pkg_postinst() {
+       xdg_icon_cache_update
+}
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}
+

Reply via email to