Gentoo Archives: gentoo-commits

From: Daniel Novomesky <dnovomesky@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libavif/
Date: Sat, 25 Apr 2020 12:25:51
Message-Id: 1587817321.298e7c44e65c2315468e871b1e5a63c039a52e9b.dnovomesky@gentoo
1 commit: 298e7c44e65c2315468e871b1e5a63c039a52e9b
2 Author: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 25 12:22:01 2020 +0000
4 Commit: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 12:22:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=298e7c44
7
8 media-libs/libavif: version bump to 0.7.2
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 RepoMan-Options: --force
12 Signed-off-by: Daniel Novomesky <dnovomesky <AT> gmail.com>
13
14 media-libs/libavif/Manifest | 1 +
15 media-libs/libavif/libavif-0.7.2.ebuild | 63 +++++++++++++++++++++++++++++++++
16 2 files changed, 64 insertions(+)
17
18 diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
19 index 5e2026e..f8b5a71 100644
20 --- a/media-libs/libavif/Manifest
21 +++ b/media-libs/libavif/Manifest
22 @@ -1 +1,2 @@
23 DIST libavif-0.6.4.tar.gz 2880753 BLAKE2B d42e106a67aa82e4e9cd28488e6393e100e78bf381f8db6f9563c8563eec8c8afe64dedd4b3cdcadc296f15472995cee979469230085aa27a19a48f2d01f5e6a SHA512 ccd9ef462b9a235914f08a75f7acefc1592037e14967089bbc118838ba3603aa527f20b842c658b357f159de28dede15ab80e27f08a19ad3456247970c0ad822
24 +DIST libavif-0.7.2.tar.gz 2892316 BLAKE2B 24f2a25744fda5f6847506ab4c7a326635fe417dd4385960322f8302b1b60c1ef96ed9ebf453fddb8eba6e7f58506e15ec6934eca76b33ccd803f324432c0340 SHA512 543aae3dde2ed19a8d2d22425260d09f577fbddbd5bc293cc9ec97e427f3854e7a957b4975130b1129a0c73847398ce88ab22de48bec500b83bc56fde671e6b7
25
26 diff --git a/media-libs/libavif/libavif-0.7.2.ebuild b/media-libs/libavif/libavif-0.7.2.ebuild
27 new file mode 100644
28 index 0000000..8239377
29 --- /dev/null
30 +++ b/media-libs/libavif/libavif-0.7.2.ebuild
31 @@ -0,0 +1,63 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit cmake
38 +
39 +DESCRIPTION="Library for encoding and decoding .avif files"
40 +HOMEPAGE="https://github.com/AOMediaCodec/libavif"
41 +
42 +if [[ ${PV} == *9999* ]]; then
43 + inherit git-r3
44 + EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git"
45 +else
46 + SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 + KEYWORDS="~amd64"
48 +fi
49 +
50 +LICENSE="BSD-2"
51 +SLOT="0"
52 +IUSE="dav1d +libaom rav1e"
53 +
54 +REQUIRED_USE="|| ( dav1d libaom )"
55 +
56 +DEPEND="dav1d? ( media-libs/dav1d )
57 + libaom? ( >=media-libs/libaom-1.1 )
58 + rav1e? ( media-video/rav1e[capi] )
59 + media-libs/libpng
60 + virtual/jpeg
61 +"
62 +RDEPEND="${DEPEND}"
63 +BDEPEND=""
64 +
65 +src_configure() {
66 + local mycmakeargs=(
67 + -DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
68 + -DAVIF_CODEC_AOM=$(usex libaom ON OFF)
69 + -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
70 + -DBUILD_SHARED_LIBS=ON
71 + -DAVIF_BUILD_APPS=ON
72 + )
73 + cmake_src_configure
74 +}
75 +
76 +pkg_postinst() {
77 + if ! use libaom && ! use rav1e ; then
78 + ewarn "libaom and rav1e flags are not set,"
79 + ewarn "libavif will work in read-only mode."
80 + ewarn "Enable libaom or rav1e flag if you want to save .AVIF files."
81 + fi
82 +
83 + if use libaom ; then
84 + elog "When you upgrade libaom in the future,"
85 + elog " you may need to re-emerge libavif again"
86 + elog " to ensure correct AVIF import/export functions."
87 + fi
88 +
89 + if use rav1e ; then
90 + elog "When you upgrade rav1e in the future,"
91 + elog " you may need to re-emerge libavif again"
92 + elog " to ensure correct AVIF export function."
93 + fi
94 +}