dev-python/mpmath: Bump to 1.4.0_alpha4
[gentoo/gentoo.git] / media-video / rav1e / rav1e-0.7.1-r1.ebuild
blobe6606d8a4078a6e23be14ae435df9788d9b3a9c4
1 # Copyright 2023-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Autogenerated by pycargoebuild 0.6.2
6 EAPI=8
8 CRATES="
9         addr2line@0.21.0
10         adler@1.0.2
11         aho-corasick@1.1.2
12         anes@0.1.6
13         anstream@0.6.5
14         anstyle-parse@0.2.3
15         anstyle-query@1.0.2
16         anstyle-wincon@3.0.2
17         anstyle@1.0.4
18         anyhow@1.0.79
19         aom-sys@0.3.3
20         arbitrary@1.3.2
21         arg_enum_proc_macro@0.3.4
22         arrayvec@0.7.4
23         assert_cmd@2.0.12
24         autocfg@1.1.0
25         av-metrics@0.9.1
26         av1-grain@0.2.3
27         backtrace@0.3.69
28         bindgen@0.69.1
29         bitflags@1.3.2
30         bitflags@2.4.1
31         bitstream-io@2.2.0
32         bstr@1.9.0
33         built@0.7.1
34         bumpalo@3.14.0
35         bytemuck@1.14.0
36         byteorder@1.5.0
37         cast@0.3.0
38         cc@1.0.83
39         cexpr@0.6.0
40         cfg-expr@0.15.6
41         cfg-if@1.0.0
42         ciborium-io@0.2.1
43         ciborium-ll@0.2.1
44         ciborium@0.2.1
45         clang-sys@1.7.0
46         clap@4.4.14
47         clap_builder@4.4.14
48         clap_complete@4.4.6
49         clap_derive@4.4.7
50         clap_lex@0.6.0
51         color_quant@1.1.0
52         colorchoice@1.0.0
53         console@0.15.8
54         crc32fast@1.3.2
55         criterion-plot@0.5.0
56         criterion@0.5.1
57         crossbeam-channel@0.5.11
58         crossbeam-deque@0.8.5
59         crossbeam-epoch@0.9.18
60         crossbeam-queue@0.3.11
61         crossbeam-utils@0.8.19
62         crossbeam@0.8.4
63         diff@0.1.13
64         difflib@0.4.0
65         doc-comment@0.3.3
66         either@1.9.0
67         encode_unicode@0.3.6
68         env_logger@0.8.4
69         equivalent@1.0.1
70         errno@0.3.8
71         fdeflate@0.3.3
72         fern@0.6.2
73         flate2@1.0.28
74         form_urlencoded@1.2.1
75         getrandom@0.2.12
76         gimli@0.28.1
77         git2@0.18.1
78         glob@0.3.1
79         half@1.8.2
80         hashbrown@0.14.3
81         heck@0.4.1
82         hermit-abi@0.3.3
83         home@0.5.9
84         idna@0.5.0
85         image@0.24.7
86         indexmap@2.1.0
87         interpolate_name@0.2.4
88         is-terminal@0.4.10
89         itertools@0.10.5
90         itertools@0.11.0
91         itertools@0.12.0
92         itoa@1.0.10
93         jobserver@0.1.27
94         js-sys@0.3.66
95         lab@0.11.0
96         lazy_static@1.4.0
97         lazycell@1.3.0
98         libc@0.2.152
99         libdav1d-sys@0.6.0
100         libfuzzer-sys@0.4.7
101         libgit2-sys@0.16.1+1.7.1
102         libloading@0.8.1
103         libz-sys@1.1.14
104         linux-raw-sys@0.4.12
105         log@0.4.20
106         maybe-rayon@0.1.1
107         memchr@2.7.1
108         minimal-lexical@0.2.1
109         miniz_oxide@0.7.1
110         nasm-rs@0.2.5
111         new_debug_unreachable@1.0.4
112         nom@7.1.3
113         noop_proc_macro@0.3.0
114         nu-ansi-term@0.46.0
115         num-bigint@0.4.4
116         num-derive@0.4.1
117         num-integer@0.1.45
118         num-rational@0.4.1
119         num-traits@0.2.17
120         object@0.32.2
121         once_cell@1.19.0
122         oorandom@11.1.3
123         overload@0.1.1
124         paste@1.0.14
125         peeking_take_while@0.1.2
126         percent-encoding@2.3.1
127         pin-project-lite@0.2.13
128         pkg-config@0.3.28
129         plotters-backend@0.3.5
130         plotters-svg@0.3.5
131         plotters@0.3.5
132         png@0.17.10
133         ppv-lite86@0.2.17
134         predicates-core@1.0.6
135         predicates-tree@1.0.9
136         predicates@3.0.4
137         pretty_assertions@1.4.0
138         prettyplease@0.2.16
139         proc-macro2@1.0.76
140         profiling-procmacros@1.0.13
141         profiling@1.0.13
142         quickcheck@1.0.3
143         quote@1.0.35
144         rand@0.8.5
145         rand_chacha@0.3.1
146         rand_core@0.6.4
147         rayon-core@1.12.0
148         rayon@1.8.0
149         regex-automata@0.4.3
150         regex-syntax@0.8.2
151         regex@1.10.2
152         rustc-demangle@0.1.23
153         rustc-hash@1.1.0
154         rustix@0.38.28
155         ryu@1.0.16
156         same-file@1.0.6
157         scan_fmt@0.2.6
158         semver@1.0.21
159         serde-big-array@0.5.1
160         serde@1.0.195
161         serde_derive@1.0.195
162         serde_json@1.0.111
163         serde_spanned@0.6.5
164         sharded-slab@0.1.7
165         shlex@1.2.0
166         signal-hook-registry@1.4.1
167         signal-hook@0.3.17
168         simd-adler32@0.3.7
169         simd_helpers@0.1.0
170         smallvec@1.11.2
171         syn@2.0.48
172         system-deps@6.2.0
173         target-lexicon@0.12.13
174         terminal_size@0.3.0
175         termtree@0.4.1
176         thiserror-impl@1.0.56
177         thiserror@1.0.56
178         thread_local@1.1.7
179         tinytemplate@1.2.1
180         tinyvec@1.6.0
181         tinyvec_macros@0.1.1
182         toml@0.8.8
183         toml_datetime@0.6.5
184         toml_edit@0.21.0
185         tracing-attributes@0.1.27
186         tracing-chrome@0.7.1
187         tracing-core@0.1.32
188         tracing-log@0.2.0
189         tracing-subscriber@0.3.18
190         tracing@0.1.40
191         unicode-bidi@0.3.14
192         unicode-ident@1.0.12
193         unicode-normalization@0.1.22
194         unicode-width@0.1.11
195         url@2.5.0
196         utf8parse@0.2.1
197         v_frame@0.3.7
198         valuable@0.1.0
199         vcpkg@0.2.15
200         version-compare@0.1.1
201         wait-timeout@0.2.0
202         walkdir@2.4.0
203         wasi@0.11.0+wasi-snapshot-preview1
204         wasm-bindgen-backend@0.2.89
205         wasm-bindgen-macro-support@0.2.89
206         wasm-bindgen-macro@0.2.89
207         wasm-bindgen-shared@0.2.89
208         wasm-bindgen@0.2.89
209         web-sys@0.3.66
210         which@4.4.2
211         winapi-i686-pc-windows-gnu@0.4.0
212         winapi-util@0.1.6
213         winapi-x86_64-pc-windows-gnu@0.4.0
214         winapi@0.3.9
215         windows-sys@0.48.0
216         windows-sys@0.52.0
217         windows-targets@0.48.5
218         windows-targets@0.52.0
219         windows_aarch64_gnullvm@0.48.5
220         windows_aarch64_gnullvm@0.52.0
221         windows_aarch64_msvc@0.48.5
222         windows_aarch64_msvc@0.52.0
223         windows_i686_gnu@0.48.5
224         windows_i686_gnu@0.52.0
225         windows_i686_msvc@0.48.5
226         windows_i686_msvc@0.52.0
227         windows_x86_64_gnu@0.48.5
228         windows_x86_64_gnu@0.52.0
229         windows_x86_64_gnullvm@0.48.5
230         windows_x86_64_gnullvm@0.52.0
231         windows_x86_64_msvc@0.48.5
232         windows_x86_64_msvc@0.52.0
233         winnow@0.5.33
234         y4m@0.8.0
235         yansi@0.5.1
238 inherit cargo
240 DESCRIPTION="The fastest and safest AV1 encoder"
241 HOMEPAGE="https://github.com/xiph/rav1e/"
242 if [[ ${PV} == *9999 ]] ; then
243         EGIT_REPO_URI="https://github.com/xiph/rav1e.git"
244         inherit git-r3
245 else
246         SRC_URI="
247                 https://github.com/xiph/rav1e/archive/v${PV}.tar.gz -> ${P}.tar.gz
248                 ${CARGO_CRATE_URIS}
249         "
250         KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86"
253 LICENSE="BSD-2"
254 # Dependent crate licenses
255 LICENSE+="
256         Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT
257         Unicode-DFS-2016
259 SLOT="0/$(ver_cut 1-2)"
260 IUSE="+capi"
262 ASM_DEP=">=dev-lang/nasm-2.15"
263 BDEPEND="
264         amd64? ( ${ASM_DEP} )
265         capi? ( >=dev-util/cargo-c-0.6.3 )
267 # only used as a build script to check the version of rav1e...
268 DEPEND="dev-libs/libgit2"
270 # Rust
271 QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e"
273 src_unpack() {
274         if [[ ${PV} == *9999* ]]; then
275                 git-r3_src_unpack
276                 cargo_live_src_unpack
277         else
278                 default
279                 cargo_src_unpack
280         fi
283 src_prepare() {
284         default
286         # libgit2-sys unnecessarily(?) requests <libgit2-1.8.0, bump to 2 for now
287         sed -e '/range_version/s/1\.8\.0/2/' \
288                 -i "${ECARGO_VENDOR}"/libgit2-sys-0.16.1+1.7.1/build.rs || die
291 src_compile() {
292         # used by build script to get rav1e repository info
293         export LIBGIT2_NO_VENDOR=1
295         cargo_src_compile
297         if use capi; then
298                 local args=$(usev !debug --release)
299                 cargo cbuild ${args} --target-dir="capi" \
300                         --prefix="/usr" --libdir="/usr/$(get_libdir)" \
301                         --library-type=cdylib \
302                         || die "cargo cbuild failed"
303         fi
306 src_install() {
307         export CARGO_HOME="${ECARGO_HOME}"
308         local args=$(usev debug --debug)
310         if use capi; then
311                 cargo cinstall ${args} --target-dir="capi" \
312                         --prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \
313                         --library-type=cdylib \
314                         || die "cargo cinstall failed"
315         fi
317         cargo_src_install