From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- media-video/rav1e/Manifest | 6 +- media-video/rav1e/rav1e-0.6.6-r1.ebuild | 306 ++++++++++++++++++++++++++++++ media-video/rav1e/rav1e-0.6.6.ebuild | 307 ------------------------------ media-video/rav1e/rav1e-0.7.1-r1.ebuild | 318 +++++++++++++++++++++++++++++++ media-video/rav1e/rav1e-0.7.1.ebuild | 319 -------------------------------- media-video/rav1e/rav1e-9999.ebuild | 1 - 6 files changed, 627 insertions(+), 630 deletions(-) create mode 100644 media-video/rav1e/rav1e-0.6.6-r1.ebuild delete mode 100644 media-video/rav1e/rav1e-0.6.6.ebuild create mode 100644 media-video/rav1e/rav1e-0.7.1-r1.ebuild delete mode 100644 media-video/rav1e/rav1e-0.7.1.ebuild (limited to 'media-video/rav1e') diff --git a/media-video/rav1e/Manifest b/media-video/rav1e/Manifest index 1e10d9f3fb52..6903a8b91bac 100644 --- a/media-video/rav1e/Manifest +++ b/media-video/rav1e/Manifest @@ -394,7 +394,7 @@ DIST winnow-0.4.1.crate 138177 BLAKE2B 9fb55dc5dbca2250c5921aebc42fd8dff7da6fc70 DIST winnow-0.5.33.crate 154059 BLAKE2B 6977ce903cbb37eff53d8bd2d38e3b2ac06ba89e5951441a2034b200675f2d02462cb953315aec945aa50be672969ae28eb0cd2853baea77f71b4a55bfd03672 SHA512 8df4c9569f2e97de3f96392423bbb24d2b25cfe0ed83cb63a857bef2d5cf9c7e70b110bb19f853e182bd23ef30bc1228378eac6b468414be0a662ee6ae5baf97 DIST y4m-0.8.0.crate 12455 BLAKE2B cd3ef0fcc025f415374c46aeec0461a3ad8a6e88ffc629250eabbc3d6bad34484c29de3ce5eb57f4a6caf16fa9bc591c7f8edb51312c51661d0cb0687d5f5eda SHA512 e80f6c5a650ea06d747dfba8cfc60474e5a3411c60c2d392fcec96699585801524502a9c91fea950aa449845773a5730604317c3533cb0f83e2c8f140cf108e6 DIST yansi-0.5.1.crate 16525 BLAKE2B 3b5a93b98293daae72f53bf3f13bfc05feba8d5b27921f79595f7448fbcb9a0dfa6cd70f467c5735b914c46b7d3592e6cce080c540a458a904308525eb3aa839 SHA512 7b33005a066cc612408a65df6533e8718d1de43efc0fd57416a19dc2b811497570e6e18f100fb26073565e395e711518c27de7d644ae64777713f1a102eb16d2 -EBUILD rav1e-0.6.6.ebuild 5986 BLAKE2B 1ed677d481591ca81ac938d0e619901a83c91d755a7c95e05891ad3a56602e195d1894f29419a93b839c864e373bf612fc1ab6a65554c47f40d61df04a1808d9 SHA512 f1496c9ad9501c0e18fdba6af63ea3f047b8deebd0aae5a49651bc2faf2dad9f8af33b3aa8e932c3711af73dd93ee001ea8b3c83b53ca9accb7bd56fa0e679ec -EBUILD rav1e-0.7.1.ebuild 6324 BLAKE2B eeeca5d8630fb260ab7058aaf33ba8d14a85d497aaae5c3f01a17f22a0b947ee2b612d9e6c914432a8076e629151980a219288085779bea087dff55cb1440eb1 SHA512 2a3e561d207e7f4d050f9a637a37c9c36c4d252eba59e7a979c537444f8b92dbac4e581214a28fea948a906d2985fcb22cfceb60320db2e5aca3a5ea55294831 -EBUILD rav1e-9999.ebuild 6120 BLAKE2B 5d11e76f5fd9a8bbaeda124ce85d9ddd9ee7d90f7beff390efebdc398f12ac28214938d37a3b6bd203049387f428bff315392d6a7b8265d2406b5876d1ad6e06 SHA512 1a71a7db2a5d20cedeb0fb7e1e3dc899a427da0cf1b0d9e6a2f61224670401d59205e97dc1a8c70a0b516c96409b792f5841946f8e5f7f10b0a3c4985750f32c +EBUILD rav1e-0.6.6-r1.ebuild 5953 BLAKE2B 2c96a4a5cb7f02ddddac467df634143783738da5ca1957a85d3709ad37730cc26b31ef325c8eb1da1ff0708a522365fe2684b846c1f2b2760fcb161892439a79 SHA512 0fc6d29c4a054192e121c17d11316e2f31bf1fdcfcb279eb5d96ebbe41a2fefc57380905833735a80a3950217675c4f73b83f81db9ddbafb1923d8bcef586b45 +EBUILD rav1e-0.7.1-r1.ebuild 6301 BLAKE2B 77cd8b50b1e74b63244e81b2287e62fb024325f8a3411c3724e5ed5bd81e34797de914e9936286b097e13342df1e9ae468d705c7a14fe61c387a3ade4b11a7f4 SHA512 4bed3d553d221c1188a8a7f93d1dfe54d0339624673b69acfc8da337b0762d23e216df25b796c089fe24dfc13106b3767f7e9f3c13c83d9896be8e41e263227c +EBUILD rav1e-9999.ebuild 6097 BLAKE2B 2aafbcb3325ea239f8c6ee53b84bc690f2ec81e10226a45293f28b44b61d24624fd72923fa7bec9b38435bc405b4b8bd646e75e8b8a9147c361ce116c01b1e37 SHA512 56837fb6cbbfadb5aace406ce42f6fb837d64689db409d41db77afbe3a6d349d72f908e00bb0cd8875231f789ed3df370968d2b13bf2c6b72d8d3a85b4243583 MISC metadata.xml 476 BLAKE2B b2997e03c74032da0513d9fcc5c5a4974e246d39bc3cb02ea49dac6fa7002ed8c6034456aa0db6cf2c8533bbddd43f500509969d78de8cb1e25d0f404c7eecc3 SHA512 81afad35f0aec236cf49bdac48c80c5572fb3acaed566cd590dd12f0d35157a4eb1717f4fc6b9e1cabd5a5735b0fd095eef24d4eabcb1d116949b71d809d2079 diff --git a/media-video/rav1e/rav1e-0.6.6-r1.ebuild b/media-video/rav1e/rav1e-0.6.6-r1.ebuild new file mode 100644 index 000000000000..47b94206729a --- /dev/null +++ b/media-video/rav1e/rav1e-0.6.6-r1.ebuild @@ -0,0 +1,306 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.6.2 + +EAPI=8 + +CRATES=" + addr2line@0.19.0 + adler@1.0.2 + aho-corasick@1.0.1 + anes@0.1.6 + anyhow@1.0.71 + aom-sys@0.3.2 + arbitrary@0.4.7 + arg_enum_proc_macro@0.3.2 + arrayvec@0.7.2 + assert_cmd@2.0.8 + atty@0.2.14 + autocfg@1.1.0 + av-metrics@0.9.0 + av1-grain@0.2.2 + backtrace@0.3.67 + bindgen@0.61.0 + bitflags@1.3.2 + bitstream-io@1.6.0 + bstr@1.4.0 + built@0.5.2 + bumpalo@3.12.2 + bytemuck@1.13.1 + byteorder@1.4.3 + cargo-lock@8.0.3 + cast@0.3.0 + cc@1.0.79 + cexpr@0.6.0 + cfg-expr@0.15.1 + cfg-if@1.0.0 + ciborium@0.2.1 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + clang-sys@1.6.1 + clap@3.2.25 + clap@4.0.32 + clap_complete@4.0.7 + clap_derive@4.0.21 + clap_lex@0.2.4 + clap_lex@0.3.0 + cmake@0.1.50 + color_quant@1.1.0 + console@0.15.5 + crc32fast@1.3.2 + criterion@0.4.0 + criterion-plot@0.5.0 + crossbeam@0.8.2 + crossbeam-channel@0.5.8 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.14 + crossbeam-queue@0.3.8 + crossbeam-utils@0.8.15 + ctor@0.1.26 + dav1d-sys@0.7.1 + diff@0.1.13 + difflib@0.4.0 + doc-comment@0.3.3 + either@1.8.1 + encode_unicode@0.3.6 + env_logger@0.8.4 + errno@0.3.1 + errno-dragonfly@0.1.2 + fdeflate@0.3.0 + fern@0.6.2 + flate2@1.0.26 + float-cmp@0.9.0 + form_urlencoded@1.1.0 + getrandom@0.2.9 + gimli@0.27.2 + git2@0.15.0 + glob@0.3.1 + half@1.8.2 + hashbrown@0.12.3 + heck@0.4.1 + hermit-abi@0.1.19 + hermit-abi@0.2.6 + hermit-abi@0.3.1 + idna@0.3.0 + image@0.24.6 + indexmap@1.9.3 + interpolate_name@0.2.3 + io-lifetimes@1.0.10 + is-terminal@0.4.7 + itertools@0.10.5 + itertools@0.8.2 + itoa@1.0.6 + jobserver@0.1.26 + js-sys@0.3.63 + lab@0.11.0 + lazy_static@1.4.0 + lazycell@1.3.0 + libc@0.2.144 + libfuzzer-sys@0.3.5 + libgit2-sys@0.14.2+1.5.1 + libloading@0.7.4 + libz-sys@1.1.9 + linux-raw-sys@0.3.7 + log@0.4.17 + maybe-rayon@0.1.1 + memchr@2.5.0 + memoffset@0.8.0 + minimal-lexical@0.2.1 + miniz_oxide@0.6.2 + miniz_oxide@0.7.1 + nasm-rs@0.2.5 + new_debug_unreachable@1.0.4 + nom@7.1.3 + noop_proc_macro@0.3.0 + normalize-line-endings@0.3.0 + num-bigint@0.4.3 + num-derive@0.3.3 + num-integer@0.1.45 + num-rational@0.4.1 + num-traits@0.2.15 + num_cpus@1.15.0 + object@0.30.3 + once_cell@1.17.1 + oorandom@11.1.3 + os_str_bytes@6.5.0 + output_vt100@0.1.3 + paste@1.0.12 + peeking_take_while@0.1.2 + percent-encoding@2.2.0 + pkg-config@0.3.27 + plotters@0.3.4 + plotters-backend@0.3.4 + plotters-svg@0.3.3 + png@0.17.8 + ppv-lite86@0.2.17 + predicates@2.1.5 + predicates-core@1.0.5 + predicates-tree@1.0.7 + pretty_assertions@1.3.0 + proc-macro-error@1.0.4 + proc-macro-error-attr@1.0.4 + proc-macro2@1.0.57 + quickcheck@1.0.3 + quickcheck_macros@1.0.0 + quote@1.0.27 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon@1.7.0 + rayon-core@1.11.0 + regex@1.8.1 + regex-automata@0.1.10 + regex-syntax@0.7.1 + rust_hawktracer@0.7.0 + rust_hawktracer_normal_macro@0.4.1 + rust_hawktracer_proc_macro@0.4.1 + rust_hawktracer_sys@0.4.2 + rustc-demangle@0.1.23 + rustc-hash@1.1.0 + rustc_version@0.4.0 + rustix@0.37.19 + ryu@1.0.13 + same-file@1.0.6 + scan_fmt@0.2.6 + scopeguard@1.1.0 + semver@1.0.17 + serde@1.0.163 + serde-big-array@0.4.1 + serde_derive@1.0.163 + serde_json@1.0.96 + serde_spanned@0.6.1 + shlex@1.1.0 + signal-hook@0.3.15 + signal-hook-registry@1.4.1 + simd-adler32@0.3.5 + simd_helpers@0.1.0 + smallvec@1.10.0 + syn@1.0.109 + syn@2.0.16 + system-deps@6.1.0 + target-lexicon@0.12.7 + termcolor@1.2.0 + terminal_size@0.2.6 + termtree@0.4.1 + textwrap@0.16.0 + thiserror@1.0.40 + thiserror-impl@1.0.40 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.5.11 + toml@0.7.3 + toml_datetime@0.6.1 + toml_edit@0.19.8 + unicode-bidi@0.3.13 + unicode-ident@1.0.8 + unicode-normalization@0.1.22 + unicode-width@0.1.10 + url@2.3.1 + v_frame@0.3.3 + vcpkg@0.2.15 + version-compare@0.1.1 + version_check@0.9.4 + wait-timeout@0.2.0 + walkdir@2.3.3 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen@0.2.86 + wasm-bindgen-backend@0.2.86 + wasm-bindgen-macro@0.2.86 + wasm-bindgen-macro-support@0.2.86 + wasm-bindgen-shared@0.2.86 + web-sys@0.3.63 + which@4.4.0 + winapi@0.3.9 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + windows-sys@0.42.0 + windows-sys@0.48.0 + windows-targets@0.48.0 + windows_aarch64_gnullvm@0.42.2 + windows_aarch64_gnullvm@0.48.0 + windows_aarch64_msvc@0.42.2 + windows_aarch64_msvc@0.48.0 + windows_i686_gnu@0.42.2 + windows_i686_gnu@0.48.0 + windows_i686_msvc@0.42.2 + windows_i686_msvc@0.48.0 + windows_x86_64_gnu@0.42.2 + windows_x86_64_gnu@0.48.0 + windows_x86_64_gnullvm@0.42.2 + windows_x86_64_gnullvm@0.48.0 + windows_x86_64_msvc@0.42.2 + windows_x86_64_msvc@0.48.0 + winnow@0.4.1 + y4m@0.8.0 + yansi@0.5.1 +" + +inherit cargo + +DESCRIPTION="The fastest and safest AV1 encoder" +HOMEPAGE="https://github.com/xiph/rav1e/" +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/xiph/rav1e.git" + inherit git-r3 +else + SRC_URI="https://github.com/xiph/rav1e/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS}" + KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" +fi + +LICENSE="BSD-2" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT + Unicode-DFS-2016 +" +SLOT="0" +IUSE="+capi" + +ASM_DEP=">=dev-lang/nasm-2.15" +BDEPEND=" + amd64? ( ${ASM_DEP} ) + capi? ( >=dev-util/cargo-c-0.6.3 ) +" + +# Rust +QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e" + +src_unpack() { + if [[ ${PV} == *9999* ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + default + cargo_src_unpack + fi +} + +src_compile() { + cargo_src_compile + + if use capi; then + local args=$(usev !debug --release) + cargo cbuild ${args} --target-dir="capi" \ + --prefix="/usr" --libdir="/usr/$(get_libdir)" \ + --library-type=cdylib \ + || die "cargo cbuild failed" + fi +} + +src_install() { + export CARGO_HOME="${ECARGO_HOME}" + local args=$(usev debug --debug) + + if use capi; then + cargo cinstall ${args} --target-dir="capi" \ + --prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \ + --library-type=cdylib \ + || die "cargo cinstall failed" + fi + + cargo_src_install +} diff --git a/media-video/rav1e/rav1e-0.6.6.ebuild b/media-video/rav1e/rav1e-0.6.6.ebuild deleted file mode 100644 index 7de235fa58a7..000000000000 --- a/media-video/rav1e/rav1e-0.6.6.ebuild +++ /dev/null @@ -1,307 +0,0 @@ -# Copyright 2023-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.6.2 - -EAPI=8 - -CRATES=" - addr2line-0.19.0 - adler-1.0.2 - aho-corasick-1.0.1 - anes-0.1.6 - anyhow-1.0.71 - aom-sys-0.3.2 - arbitrary-0.4.7 - arg_enum_proc_macro-0.3.2 - arrayvec-0.7.2 - assert_cmd-2.0.8 - atty-0.2.14 - autocfg-1.1.0 - av-metrics-0.9.0 - av1-grain-0.2.2 - backtrace-0.3.67 - bindgen-0.61.0 - bitflags-1.3.2 - bitstream-io-1.6.0 - bstr-1.4.0 - built-0.5.2 - bumpalo-3.12.2 - bytemuck-1.13.1 - byteorder-1.4.3 - cargo-lock-8.0.3 - cast-0.3.0 - cc-1.0.79 - cexpr-0.6.0 - cfg-expr-0.15.1 - cfg-if-1.0.0 - ciborium-0.2.1 - ciborium-io-0.2.1 - ciborium-ll-0.2.1 - clang-sys-1.6.1 - clap-3.2.25 - clap-4.0.32 - clap_complete-4.0.7 - clap_derive-4.0.21 - clap_lex-0.2.4 - clap_lex-0.3.0 - cmake-0.1.50 - color_quant-1.1.0 - console-0.15.5 - crc32fast-1.3.2 - criterion-0.4.0 - criterion-plot-0.5.0 - crossbeam-0.8.2 - crossbeam-channel-0.5.8 - crossbeam-deque-0.8.3 - crossbeam-epoch-0.9.14 - crossbeam-queue-0.3.8 - crossbeam-utils-0.8.15 - ctor-0.1.26 - dav1d-sys-0.7.1 - diff-0.1.13 - difflib-0.4.0 - doc-comment-0.3.3 - either-1.8.1 - encode_unicode-0.3.6 - env_logger-0.8.4 - errno-0.3.1 - errno-dragonfly-0.1.2 - fdeflate-0.3.0 - fern-0.6.2 - flate2-1.0.26 - float-cmp-0.9.0 - form_urlencoded-1.1.0 - getrandom-0.2.9 - gimli-0.27.2 - git2-0.15.0 - glob-0.3.1 - half-1.8.2 - hashbrown-0.12.3 - heck-0.4.1 - hermit-abi-0.1.19 - hermit-abi-0.2.6 - hermit-abi-0.3.1 - idna-0.3.0 - image-0.24.6 - indexmap-1.9.3 - interpolate_name-0.2.3 - io-lifetimes-1.0.10 - is-terminal-0.4.7 - itertools-0.10.5 - itertools-0.8.2 - itoa-1.0.6 - jobserver-0.1.26 - js-sys-0.3.63 - lab-0.11.0 - lazy_static-1.4.0 - lazycell-1.3.0 - libc-0.2.144 - libfuzzer-sys-0.3.5 - libgit2-sys-0.14.2+1.5.1 - libloading-0.7.4 - libz-sys-1.1.9 - linux-raw-sys-0.3.7 - log-0.4.17 - maybe-rayon-0.1.1 - memchr-2.5.0 - memoffset-0.8.0 - minimal-lexical-0.2.1 - miniz_oxide-0.6.2 - miniz_oxide-0.7.1 - nasm-rs-0.2.5 - new_debug_unreachable-1.0.4 - nom-7.1.3 - noop_proc_macro-0.3.0 - normalize-line-endings-0.3.0 - num-bigint-0.4.3 - num-derive-0.3.3 - num-integer-0.1.45 - num-rational-0.4.1 - num-traits-0.2.15 - num_cpus-1.15.0 - object-0.30.3 - once_cell-1.17.1 - oorandom-11.1.3 - os_str_bytes-6.5.0 - output_vt100-0.1.3 - paste-1.0.12 - peeking_take_while-0.1.2 - percent-encoding-2.2.0 - pkg-config-0.3.27 - plotters-0.3.4 - plotters-backend-0.3.4 - plotters-svg-0.3.3 - png-0.17.8 - ppv-lite86-0.2.17 - predicates-2.1.5 - predicates-core-1.0.5 - predicates-tree-1.0.7 - pretty_assertions-1.3.0 - proc-macro-error-1.0.4 - proc-macro-error-attr-1.0.4 - proc-macro2-1.0.57 - quickcheck-1.0.3 - quickcheck_macros-1.0.0 - quote-1.0.27 - rand-0.8.5 - rand_chacha-0.3.1 - rand_core-0.6.4 - rayon-1.7.0 - rayon-core-1.11.0 - regex-1.8.1 - regex-automata-0.1.10 - regex-syntax-0.7.1 - rust_hawktracer-0.7.0 - rust_hawktracer_normal_macro-0.4.1 - rust_hawktracer_proc_macro-0.4.1 - rust_hawktracer_sys-0.4.2 - rustc-demangle-0.1.23 - rustc-hash-1.1.0 - rustc_version-0.4.0 - rustix-0.37.19 - ryu-1.0.13 - same-file-1.0.6 - scan_fmt-0.2.6 - scopeguard-1.1.0 - semver-1.0.17 - serde-1.0.163 - serde-big-array-0.4.1 - serde_derive-1.0.163 - serde_json-1.0.96 - serde_spanned-0.6.1 - shlex-1.1.0 - signal-hook-0.3.15 - signal-hook-registry-1.4.1 - simd-adler32-0.3.5 - simd_helpers-0.1.0 - smallvec-1.10.0 - syn-1.0.109 - syn-2.0.16 - system-deps-6.1.0 - target-lexicon-0.12.7 - termcolor-1.2.0 - terminal_size-0.2.6 - termtree-0.4.1 - textwrap-0.16.0 - thiserror-1.0.40 - thiserror-impl-1.0.40 - tinytemplate-1.2.1 - tinyvec-1.6.0 - tinyvec_macros-0.1.1 - toml-0.5.11 - toml-0.7.3 - toml_datetime-0.6.1 - toml_edit-0.19.8 - unicode-bidi-0.3.13 - unicode-ident-1.0.8 - unicode-normalization-0.1.22 - unicode-width-0.1.10 - url-2.3.1 - v_frame-0.3.3 - vcpkg-0.2.15 - version-compare-0.1.1 - version_check-0.9.4 - wait-timeout-0.2.0 - walkdir-2.3.3 - wasi-0.11.0+wasi-snapshot-preview1 - wasm-bindgen-0.2.86 - wasm-bindgen-backend-0.2.86 - wasm-bindgen-macro-0.2.86 - wasm-bindgen-macro-support-0.2.86 - wasm-bindgen-shared-0.2.86 - web-sys-0.3.63 - which-4.4.0 - winapi-0.3.9 - winapi-i686-pc-windows-gnu-0.4.0 - winapi-util-0.1.5 - winapi-x86_64-pc-windows-gnu-0.4.0 - windows-sys-0.42.0 - windows-sys-0.48.0 - windows-targets-0.48.0 - windows_aarch64_gnullvm-0.42.2 - windows_aarch64_gnullvm-0.48.0 - windows_aarch64_msvc-0.42.2 - windows_aarch64_msvc-0.48.0 - windows_i686_gnu-0.42.2 - windows_i686_gnu-0.48.0 - windows_i686_msvc-0.42.2 - windows_i686_msvc-0.48.0 - windows_x86_64_gnu-0.42.2 - windows_x86_64_gnu-0.48.0 - windows_x86_64_gnullvm-0.42.2 - windows_x86_64_gnullvm-0.48.0 - windows_x86_64_msvc-0.42.2 - windows_x86_64_msvc-0.48.0 - winnow-0.4.1 - y4m-0.8.0 - yansi-0.5.1 -" - -inherit cargo - -DESCRIPTION="The fastest and safest AV1 encoder" -HOMEPAGE="https://github.com/xiph/rav1e/" -if [[ ${PV} == *9999 ]] ; then - EGIT_REPO_URI="https://github.com/xiph/rav1e.git" - inherit git-r3 -else - SRC_URI="https://github.com/xiph/rav1e/archive/v${PV}.tar.gz -> ${P}.tar.gz - $(cargo_crate_uris ${CRATES})" - KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" -fi - -LICENSE="BSD-2" -# Dependent crate licenses -LICENSE+=" - Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT - Unicode-DFS-2016 -" -SLOT="0" -IUSE="+capi" - -ASM_DEP=">=dev-lang/nasm-2.15" -BDEPEND=" - >=virtual/rust-1.65.0 - amd64? ( ${ASM_DEP} ) - capi? ( >=dev-util/cargo-c-0.6.3 ) -" - -# Rust -QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e" - -src_unpack() { - if [[ ${PV} == *9999* ]]; then - git-r3_src_unpack - cargo_live_src_unpack - else - default - cargo_src_unpack - fi -} - -src_compile() { - cargo_src_compile - - if use capi; then - local args=$(usev !debug --release) - cargo cbuild ${args} --target-dir="capi" \ - --prefix="/usr" --libdir="/usr/$(get_libdir)" \ - --library-type=cdylib \ - || die "cargo cbuild failed" - fi -} - -src_install() { - export CARGO_HOME="${ECARGO_HOME}" - local args=$(usev debug --debug) - - if use capi; then - cargo cinstall ${args} --target-dir="capi" \ - --prefix="/usr" --libdir="/usr/$(get_libdir)" --destdir="${ED}" \ - --library-type=cdylib \ - || die "cargo cinstall failed" - fi - - cargo_src_install -} diff --git a/media-video/rav1e/rav1e-0.7.1-r1.ebuild b/media-video/rav1e/rav1e-0.7.1-r1.ebuild new file mode 100644 index 000000000000..e6606d8a4078 --- /dev/null +++ b/media-video/rav1e/rav1e-0.7.1-r1.ebuild @@ -0,0 +1,318 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Autogenerated by pycargoebuild 0.6.2 + +EAPI=8 + +CRATES=" + addr2line@0.21.0 + adler@1.0.2 + aho-corasick@1.1.2 + anes@0.1.6 + anstream@0.6.5 + anstyle-parse@0.2.3 + anstyle-query@1.0.2 + anstyle-wincon@3.0.2 + anstyle@1.0.4 + anyhow@1.0.79 + aom-sys@0.3.3 + arbitrary@1.3.2 + arg_enum_proc_macro@0.3.4 + arrayvec@0.7.4 + assert_cmd@2.0.12 + autocfg@1.1.0 + av-metrics@0.9.1 + av1-grain@0.2.3 + backtrace@0.3.69 + bindgen@0.69.1 + bitflags@1.3.2 + bitflags@2.4.1 + bitstream-io@2.2.0 + bstr@1.9.0 + built@0.7.1 + bumpalo@3.14.0 + bytemuck@1.14.0 + byteorder@1.5.0 + cast@0.3.0 + cc@1.0.83 + cexpr@0.6.0 + cfg-expr@0.15.6 + cfg-if@1.0.0 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clang-sys@1.7.0 + clap@4.4.14 + clap_builder@4.4.14 + clap_complete@4.4.6 + clap_derive@4.4.7 + clap_lex@0.6.0 + color_quant@1.1.0 + colorchoice@1.0.0 + console@0.15.8 + crc32fast@1.3.2 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-channel@0.5.11 + crossbeam-deque@0.8.5 + crossbeam-epoch@0.9.18 + crossbeam-queue@0.3.11 + crossbeam-utils@0.8.19 + crossbeam@0.8.4 + diff@0.1.13 + difflib@0.4.0 + doc-comment@0.3.3 + either@1.9.0 + encode_unicode@0.3.6 + env_logger@0.8.4 + equivalent@1.0.1 + errno@0.3.8 + fdeflate@0.3.3 + fern@0.6.2 + flate2@1.0.28 + form_urlencoded@1.2.1 + getrandom@0.2.12 + gimli@0.28.1 + git2@0.18.1 + glob@0.3.1 + half@1.8.2 + hashbrown@0.14.3 + heck@0.4.1 + hermit-abi@0.3.3 + home@0.5.9 + idna@0.5.0 + image@0.24.7 + indexmap@2.1.0 + interpolate_name@0.2.4 + is-terminal@0.4.10 + itertools@0.10.5 + itertools@0.11.0 + itertools@0.12.0 + itoa@1.0.10 + jobserver@0.1.27 + js-sys@0.3.66 + lab@0.11.0 + lazy_static@1.4.0 + lazycell@1.3.0 + libc@0.2.152 + libdav1d-sys@0.6.0 + libfuzzer-sys@0.4.7 + libgit2-sys@0.16.1+1.7.1 + libloading@0.8.1 + libz-sys@1.1.14 + linux-raw-sys@0.4.12 + log@0.4.20 + maybe-rayon@0.1.1 + memchr@2.7.1 + minimal-lexical@0.2.1 + miniz_oxide@0.7.1 + nasm-rs@0.2.5 + new_debug_unreachable@1.0.4 + nom@7.1.3 + noop_proc_macro@0.3.0 + nu-ansi-term@0.46.0 + num-bigint@0.4.4 + num-derive@0.4.1 + num-integer@0.1.45 + num-rational@0.4.1 + num-traits@0.2.17 + object@0.32.2 + once_cell@1.19.0 + oorandom@11.1.3 + overload@0.1.1 + paste@1.0.14 + peeking_take_while@0.1.2 + percent-encoding@2.3.1 + pin-project-lite@0.2.13 + pkg-config@0.3.28 + plotters-backend@0.3.5 + plotters-svg@0.3.5 + plotters@0.3.5 + png@0.17.10 + ppv-lite86@0.2.17 + predicates-core@1.0.6 + predicates-tree@1.0.9 + predicates@3.0.4 + pretty_assertions@1.4.0 + prettyplease@0.2.16 + proc-macro2@1.0.76 + profiling-procmacros@1.0.13 + profiling@1.0.13 + quickcheck@1.0.3 + quote@1.0.35 + rand@0.8.5 + rand_chacha@0.3.1 + rand_core@0.6.4 + rayon-core@1.12.0 + rayon@1.8.0 + regex-automata@0.4.3 + regex-syntax@0.8.2 + regex@1.10.2 + rustc-demangle@0.1.23 + rustc-hash@1.1.0 + rustix@0.38.28 + ryu@1.0.16 + same-file@1.0.6 + scan_fmt@0.2.6 + semver@1.0.21 + serde-big-array@0.5.1 + serde@1.0.195 + serde_derive@1.0.195 + serde_json@1.0.111 + serde_spanned@0.6.5 + sharded-slab@0.1.7 + shlex@1.2.0 + signal-hook-registry@1.4.1 + signal-hook@0.3.17 + simd-adler32@0.3.7 + simd_helpers@0.1.0 + smallvec@1.11.2 + syn@2.0.48 + system-deps@6.2.0 + target-lexicon@0.12.13 + terminal_size@0.3.0 + termtree@0.4.1 + thiserror-impl@1.0.56 + thiserror@1.0.56 + thread_local@1.1.7 + tinytemplate@1.2.1 + tinyvec@1.6.0 + tinyvec_macros@0.1.1 + toml@0.8.8 + toml_datetime@0.6.5 + toml_edit@0.21.0 + tracing-attributes@0.1.27 + tracing-chrome@0.7.1 + tracing-core@0.1.32 + tracing-log@0.2.0 + tracing-subscriber@0.3.18 + tracing@0.1.40 + unicode-bidi@0.3.14 + unicode-ident@1.0.12 + unicode-normalization@0.1.22 + unicode-width@0.1.11 + url@2.5.0 + utf8parse@0.2.1 + v_frame@0.3.7 + valuable@0.1.0 + vcpkg@0.2.15 + version-compare@0.1.1 + wait-timeout@0.2.0 + walkdir@2.4.0 + wasi@0.11.0+wasi-snapshot-preview1 + wasm-bindgen-backend@0.2.89 + wasm-bindgen-macro-support@0.2.89 + wasm-bindgen-macro@0.2.89 + wasm-bindgen-shared@0.2.89 + wasm-bindgen@0.2.89 + web-sys@0.3.66 + which@4.4.2 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.6 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.0 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.0 + winnow@0.5.33 + y4m@0.8.0 + yansi@0.5.1 +" + +inherit cargo + +DESCRIPTION="The fastest and safest AV1 encoder" +HOMEPAGE="https://github.com/xiph/rav1e/" +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/xiph/rav1e.git" + inherit git-r3 +else + SRC_URI=" + https://github.com/xiph/rav1e/archive/v${PV}.tar.gz -> ${P}.tar.gz + ${CARGO_CRATE_URIS} + " + KEYWORDS="amd64 arm arm64 ~loong ppc64 ~riscv x86" +fi + +LICENSE="BSD-2" +# Dependent crate licenses +LICENSE+=" + Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD ISC MIT + Unicode-DFS-2016 +" +SLOT="0/$(ver_cut 1-2)" +IUSE="+capi" + +ASM_DEP=">=dev-lang/nasm-2.15" +BDEPEND=" + amd64? ( ${ASM_DEP} ) + capi? ( >=dev-util/cargo-c-0.6.3 ) +" +# only used as a build script to check the version of rav1e... +DEPEND="dev-libs/libgit2" + +# Rust +QA_FLAGS_IGNORED="usr/lib.*/librav1e.* usr/bin/rav1e" + +src_unpack() { + if [[ ${PV} == *9999* ]]; then + git-r3_src_unpack + cargo_live_src_unpack + else + default + cargo_src_unpack + fi +} + +src_prepare() { + default + + # libgit2-sys unnecessarily(?) requests