From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3F19713835A for ; Thu, 23 Jul 2020 16:15:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 51E74E0827; Thu, 23 Jul 2020 16:15:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3C892E0827 for ; Thu, 23 Jul 2020 16:15:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5FC9534EDDD for ; Thu, 23 Jul 2020 16:15:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA85B2F0 for ; Thu, 23 Jul 2020 16:15:22 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1595504850.b6d4a1a85784a648e8f44f3b06efc51b7b03936d.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: media-libs/libavif/ X-VCS-Repository: repo/proj/guru X-VCS-Files: media-libs/libavif/libavif-9999.ebuild X-VCS-Directories: media-libs/libavif/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: b6d4a1a85784a648e8f44f3b06efc51b7b03936d X-VCS-Branch: master Date: Thu, 23 Jul 2020 16:15:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 1e2cc64a-6d95-4fa6-a156-0611fafd203d X-Archives-Hash: d7a65a2b13b53a81515b2116403460b2 commit: b6d4a1a85784a648e8f44f3b06efc51b7b03936d Author: Daniel Novomesky gmail com> AuthorDate: Thu Jul 23 11:47:30 2020 +0000 Commit: Andrew Ammerlaan riseup net> 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 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 }