1 |
commit: ded989ba8c2ef88da7f859e85533d3a7b1eb25b4 |
2 |
Author: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Apr 26 07:28:38 2020 +0000 |
4 |
Commit: Daniel Novomesky <dnovomesky <AT> gmail <DOT> com> |
5 |
CommitDate: Sun Apr 26 07:28:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ded989ba |
7 |
|
8 |
media-libs/libavif: drop keyword |
9 |
|
10 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
11 |
Signed-off-by: Daniel Novomesky <dnovomesky <AT> gmail.com> |
12 |
|
13 |
media-libs/libavif/libavif-0.6.4.ebuild | 62 ++++++++++++++++----------------- |
14 |
media-libs/libavif/libavif-9999.ebuild | 2 +- |
15 |
2 files changed, 32 insertions(+), 32 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/libavif/libavif-0.6.4.ebuild b/media-libs/libavif/libavif-0.6.4.ebuild |
18 |
index 89a658c..f30ae5b 100644 |
19 |
--- a/media-libs/libavif/libavif-0.6.4.ebuild |
20 |
+++ b/media-libs/libavif/libavif-0.6.4.ebuild |
21 |
@@ -7,32 +7,34 @@ inherit cmake |
22 |
|
23 |
DESCRIPTION="Library for encoding and decoding .avif files" |
24 |
HOMEPAGE="https://github.com/AOMediaCodec/libavif" |
25 |
-SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
26 |
+ |
27 |
+if [[ ${PV} == *9999* ]]; then |
28 |
+ inherit git-r3 |
29 |
+ EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git" |
30 |
+else |
31 |
+ SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
+ KEYWORDS="" |
33 |
+fi |
34 |
|
35 |
LICENSE="BSD-2" |
36 |
SLOT="0" |
37 |
-KEYWORDS="~amd64" |
38 |
-#IUSE="dav1d +libaom rav1e" |
39 |
-IUSE="dav1d" |
40 |
- |
41 |
-#REQUIRED_USE="|| ( dav1d libaom )" |
42 |
-REQUIRED_USE="dav1d" |
43 |
- |
44 |
-#unavailable dependencies |
45 |
-# libaom? ( >=media-libs/libaom-1.1 ) |
46 |
-# rav1e? ( media-video/rav1e[capi] ) |
47 |
-DEPEND=" |
48 |
- dav1d? ( media-libs/dav1d ) |
49 |
+IUSE="dav1d +libaom rav1e" |
50 |
+ |
51 |
+REQUIRED_USE="|| ( dav1d libaom )" |
52 |
+ |
53 |
+DEPEND="dav1d? ( media-libs/dav1d ) |
54 |
+ libaom? ( >=media-libs/libaom-1.1 ) |
55 |
+ rav1e? ( media-video/rav1e[capi] ) |
56 |
media-libs/libpng |
57 |
" |
58 |
RDEPEND="${DEPEND}" |
59 |
BDEPEND="" |
60 |
|
61 |
src_configure() { |
62 |
-# -DAVIF_CODEC_AOM=$(usex libaom ON OFF) |
63 |
-# -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF) |
64 |
local mycmakeargs=( |
65 |
-DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF) |
66 |
+ -DAVIF_CODEC_AOM=$(usex libaom ON OFF) |
67 |
+ -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF) |
68 |
-DBUILD_SHARED_LIBS=ON |
69 |
-DAVIF_BUILD_APPS=ON |
70 |
) |
71 |
@@ -40,23 +42,21 @@ src_configure() { |
72 |
} |
73 |
|
74 |
pkg_postinst() { |
75 |
-# if ! use libaom && ! use rav1e ; then |
76 |
+ if ! use libaom && ! use rav1e ; then |
77 |
ewarn "libaom and rav1e flags are not set," |
78 |
ewarn "libavif will work in read-only mode." |
79 |
ewarn "Enable libaom or rav1e flag if you want to save .AVIF files." |
80 |
-# fi |
81 |
- |
82 |
-#instead of writing this below, use the := dependency |
83 |
- |
84 |
-# if use libaom ; then |
85 |
-# elog "When you upgrade libaom in the future," |
86 |
-# elog " you may need to re-emerge libavif again" |
87 |
-# elog " to ensure correct AVIF import/export functions." |
88 |
-# fi |
89 |
- |
90 |
-# if use rav1e ; then |
91 |
-# elog "When you upgrade rav1e in the future," |
92 |
-# elog " you may need to re-emerge libavif again" |
93 |
-# elog " to ensure correct AVIF export function." |
94 |
-# fi |
95 |
+ fi |
96 |
+ |
97 |
+ if use libaom ; then |
98 |
+ elog "When you upgrade libaom in the future," |
99 |
+ elog " you may need to re-emerge libavif again" |
100 |
+ elog " to ensure correct AVIF import/export functions." |
101 |
+ fi |
102 |
+ |
103 |
+ if use rav1e ; then |
104 |
+ elog "When you upgrade rav1e in the future," |
105 |
+ elog " you may need to re-emerge libavif again" |
106 |
+ elog " to ensure correct AVIF export function." |
107 |
+ fi |
108 |
} |
109 |
|
110 |
diff --git a/media-libs/libavif/libavif-9999.ebuild b/media-libs/libavif/libavif-9999.ebuild |
111 |
index 8239377..cc370ec 100644 |
112 |
--- a/media-libs/libavif/libavif-9999.ebuild |
113 |
+++ b/media-libs/libavif/libavif-9999.ebuild |
114 |
@@ -13,7 +13,7 @@ if [[ ${PV} == *9999* ]]; then |
115 |
EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git" |
116 |
else |
117 |
SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
118 |
- KEYWORDS="~amd64" |
119 |
+ KEYWORDS="" |
120 |
fi |
121 |
|
122 |
LICENSE="BSD-2" |