commit:     36df2d690559aea8f2881e04a2a0a5ee2740e3a4
Author:     Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
AuthorDate: Thu May  7 20:41:22 2020 +0000
Commit:     Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
CommitDate: Thu May  7 20:41:22 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=36df2d69

media-libs/libavif: version bump to 0.7.3

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Daniel Novomesky <dnovomesky <AT> gmail.com>

 media-libs/libavif/Manifest             |  1 +
 media-libs/libavif/libavif-0.7.3.ebuild | 51 +++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
index f8b5a71..c7dddc5 100644
--- a/media-libs/libavif/Manifest
+++ b/media-libs/libavif/Manifest
@@ -1,2 +1,3 @@
 DIST libavif-0.6.4.tar.gz 2880753 BLAKE2B 
d42e106a67aa82e4e9cd28488e6393e100e78bf381f8db6f9563c8563eec8c8afe64dedd4b3cdcadc296f15472995cee979469230085aa27a19a48f2d01f5e6a
 SHA512 
ccd9ef462b9a235914f08a75f7acefc1592037e14967089bbc118838ba3603aa527f20b842c658b357f159de28dede15ab80e27f08a19ad3456247970c0ad822
 DIST libavif-0.7.2.tar.gz 2892316 BLAKE2B 
24f2a25744fda5f6847506ab4c7a326635fe417dd4385960322f8302b1b60c1ef96ed9ebf453fddb8eba6e7f58506e15ec6934eca76b33ccd803f324432c0340
 SHA512 
543aae3dde2ed19a8d2d22425260d09f577fbddbd5bc293cc9ec97e427f3854e7a957b4975130b1129a0c73847398ce88ab22de48bec500b83bc56fde671e6b7
+DIST libavif-0.7.3.tar.gz 2893675 BLAKE2B 
9cbfac039859f2b7fed975c8088698c8ab792773dd8a6512d5b2cf5827cb58d23a6aec6ca077da088af0dc4fb40a7d065ad5e5a8e0f4e8d11391acedb95ac31b
 SHA512 
b8928755ee39964fd9d9575fdb393ffee0ac3597c1d6f6048e049e6c328d1e82febdb32bfa0b22e16a2fb73ff6cd1ad4af7f63fc9baccea22716d941385c028d

diff --git a/media-libs/libavif/libavif-0.7.3.ebuild 
b/media-libs/libavif/libavif-0.7.3.ebuild
new file mode 100644
index 0000000..7fa8ecc
--- /dev/null
+++ b/media-libs/libavif/libavif-0.7.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit cmake
+
+DESCRIPTION="Library for encoding and decoding .avif files"
+HOMEPAGE="https://github.com/AOMediaCodec/libavif";
+
+if [[ "${PV}" == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git";
+else
+       SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS=""
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="dav1d +libaom rav1e"
+
+REQUIRED_USE="|| ( dav1d libaom )"
+
+DEPEND="dav1d? ( media-libs/dav1d )
+       libaom? ( >=media-libs/libaom-1.0.0_p20200507:= )
+       rav1e? ( media-video/rav1e:=[capi] )
+       media-libs/libpng
+       virtual/jpeg
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+src_configure() {
+       local mycmakeargs=(
+               -DAVIF_BUILD_APPS=ON
+               -DAVIF_CODEC_AOM=$(usex libaom ON OFF)
+               -DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
+               -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
+               -DBUILD_SHARED_LIBS=ON
+       )
+       cmake_src_configure
+}
+
+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
+}

Reply via email to