Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: media-libs/libavif/
Date: Sat, 25 Apr 2020 07:58:21
Message-Id: 1587801420.094e9ff0f6145433341db8e61303b61ed4ced919.Alessandro-Barbieri@gentoo
1 commit: 094e9ff0f6145433341db8e61303b61ed4ced919
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sat Apr 25 07:57:00 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sat Apr 25 07:57:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=094e9ff0
7
8 media-libs/libavif: fixes for super bad package
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 media-libs/libavif/libavif-0.6.4.ebuild | 47 ++++++++++++++++++---------------
14 1 file changed, 26 insertions(+), 21 deletions(-)
15
16 diff --git a/media-libs/libavif/libavif-0.6.4.ebuild b/media-libs/libavif/libavif-0.6.4.ebuild
17 index 9abaef9..009206a 100644
18 --- a/media-libs/libavif/libavif-0.6.4.ebuild
19 +++ b/media-libs/libavif/libavif-0.6.4.ebuild
20 @@ -12,23 +12,26 @@ SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.t
21 LICENSE="BSD-2"
22 SLOT="0"
23 KEYWORDS="~amd64"
24 -IUSE="dav1d +libaom rav1e"
25 +#IUSE="dav1d +libaom rav1e"
26 +IUSE="dav1d"
27
28 -REQUIRED_USE="|| ( dav1d libaom )"
29 +#REQUIRED_USE="|| ( dav1d libaom )"
30
31 -DEPEND="dav1d? ( media-libs/dav1d )
32 - libaom? ( >=media-libs/libaom-1.1 )
33 - rav1e? ( media-video/rav1e[capi] )
34 +#unavailable
35 +# libaom? ( >=media-libs/libaom-1.1 )
36 +# rav1e? ( media-video/rav1e[capi] )
37 +DEPEND="
38 + dav1d? ( media-libs/dav1d )
39 media-libs/libpng
40 "
41 RDEPEND="${DEPEND}"
42 BDEPEND=""
43
44 src_configure() {
45 +# -DAVIF_CODEC_AOM=$(usex libaom ON OFF)
46 +# -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
47 local mycmakeargs=(
48 -DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
49 - -DAVIF_CODEC_AOM=$(usex libaom ON OFF)
50 - -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
51 -DBUILD_SHARED_LIBS=ON
52 -DAVIF_BUILD_APPS=ON
53 )
54 @@ -36,21 +39,23 @@ src_configure() {
55 }
56
57 pkg_postinst() {
58 - if ! use libaom && ! use rav1e ; then
59 +# if ! use libaom && ! use rav1e ; then
60 ewarn "libaom and rav1e flags are not set,"
61 ewarn "libavif will work in read-only mode."
62 ewarn "Enable libaom or rav1e flag if you want to save .AVIF files."
63 - fi
64 -
65 - if use libaom ; then
66 - elog "When you upgrade libaom in the future,"
67 - elog " you may need to re-emerge libavif again"
68 - elog " to ensure correct AVIF import/export functions."
69 - fi
70 -
71 - if use rav1e ; then
72 - elog "When you upgrade rav1e in the future,"
73 - elog " you may need to re-emerge libavif again"
74 - elog " to ensure correct AVIF export function."
75 - fi
76 +# fi
77 +
78 +#instead of writing this below, use the := dependency
79 +
80 +# if use libaom ; then
81 +# elog "When you upgrade libaom in the future,"
82 +# elog " you may need to re-emerge libavif again"
83 +# elog " to ensure correct AVIF import/export functions."
84 +# fi
85 +
86 +# if use rav1e ; then
87 +# elog "When you upgrade rav1e in the future,"
88 +# elog " you may need to re-emerge libavif again"
89 +# elog " to ensure correct AVIF export function."
90 +# fi
91 }