commit: b6d4a1a85784a648e8f44f3b06efc51b7b03936d Author: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com> AuthorDate: Thu Jul 23 11:47:30 2020 +0000 Commit: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com> CommitDate: Thu Jul 23 11:47:30 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b6d4a1a8
media-libs/libavif: update gdk-pixbuf cache after install Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Daniel Novomesky <dnovomesky <AT> gmail.com> media-libs/libavif/libavif-9999.ebuild | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/media-libs/libavif/libavif-9999.ebuild b/media-libs/libavif/libavif-9999.ebuild index 7e7a212..55e2b97 100644 --- a/media-libs/libavif/libavif-9999.ebuild +++ b/media-libs/libavif/libavif-9999.ebuild @@ -3,7 +3,7 @@ EAPI="7" -inherit cmake +inherit cmake gnome2-utils DESCRIPTION="Library for encoding and decoding .avif files" HOMEPAGE="https://github.com/AOMediaCodec/libavif" @@ -44,10 +44,26 @@ src_configure() { cmake_src_configure } +pkg_preinst() { + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_savelist + fi +} + pkg_postinst() { if ! use libaom && ! use rav1e ; then ewarn "libaom and rav1e flags are not set," ewarn "libavif will work in read-only mode." ewarn "Enable libaom or rav1e flag if you want to save .AVIF files." fi + + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_update + fi +} + +pkg_postrm() { + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_update + fi }
