summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-03 23:57:00 -0500
committerSam James <sam@gentoo.org>2024-03-04 05:47:11 +0000
commit4a41e9885a97ab376c0169c7c82dd170b20da51c (patch)
tree20e602e3b3099ff3c19e8fba4da686c90b02289a /media-video
parentnet-im/dino: fix modern C issues (diff)
downloadgentoo-4a41e9885a97ab376c0169c7c82dd170b20da51c.tar.gz
gentoo-4a41e9885a97ab376c0169c7c82dd170b20da51c.tar.bz2
gentoo-4a41e9885a97ab376c0169c7c82dd170b20da51c.zip
media-video/rav1e: use cargo.eclass functions to build
Avoid randomly circumventing cargo_src_compile just to run additional things *after*. We want to consistently use the eclass handling, including in this case filter-lto. Closes: https://bugs.gentoo.org/908815 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r--media-video/rav1e/rav1e-0.6.6.ebuild8
-rw-r--r--media-video/rav1e/rav1e-0.7.1.ebuild6
-rw-r--r--media-video/rav1e/rav1e-9999.ebuild6
3 files changed, 7 insertions, 13 deletions
diff --git a/media-video/rav1e/rav1e-0.6.6.ebuild b/media-video/rav1e/rav1e-0.6.6.ebuild
index bd8790306918..7de235fa58a7 100644
--- a/media-video/rav1e/rav1e-0.6.6.ebuild
+++ b/media-video/rav1e/rav1e-0.6.6.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023 Gentoo Authors
+# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.6.2
@@ -281,12 +281,10 @@ src_unpack() {
}
src_compile() {
- export CARGO_HOME="${ECARGO_HOME}"
- local args=$(usev !debug --release)
-
- cargo build ${args} || die "cargo build failed"
+ 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 \
diff --git a/media-video/rav1e/rav1e-0.7.1.ebuild b/media-video/rav1e/rav1e-0.7.1.ebuild
index bc583f5762cb..3f21fd7d33c8 100644
--- a/media-video/rav1e/rav1e-0.7.1.ebuild
+++ b/media-video/rav1e/rav1e-0.7.1.ebuild
@@ -280,12 +280,10 @@ src_unpack() {
}
src_compile() {
- export CARGO_HOME="${ECARGO_HOME}"
- local args=$(usev !debug --release)
-
- cargo build ${args} || die "cargo build failed"
+ 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 \
diff --git a/media-video/rav1e/rav1e-9999.ebuild b/media-video/rav1e/rav1e-9999.ebuild
index bc583f5762cb..3f21fd7d33c8 100644
--- a/media-video/rav1e/rav1e-9999.ebuild
+++ b/media-video/rav1e/rav1e-9999.ebuild
@@ -280,12 +280,10 @@ src_unpack() {
}
src_compile() {
- export CARGO_HOME="${ECARGO_HOME}"
- local args=$(usev !debug --release)
-
- cargo build ${args} || die "cargo build failed"
+ 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 \