gnome-base/librsvg: Use cargo_env to ensure proper RUSTFLAGS are applied

This almost removes the need to set cross_compiling=yes but unfortunately, this
is still needed for the build to determine the right target directory.

Closes: https://bugs.gentoo.org/951740
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot 2025-03-23 22:19:40 +00:00
parent 6937fcb873
commit 5fe28b3e44
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -393,7 +393,11 @@ src_compile() {
}
multilib_src_compile() {
gnome2_src_compile
cargo_env gnome2_src_compile
}
multilib_src_test() {
cargo_env default
}
src_test() {
@ -405,7 +409,7 @@ src_install() {
}
multilib_src_install() {
gnome2_src_install
cargo_env gnome2_src_install
}
multilib_src_install_all() {