mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
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@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user