[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 2/2] multilib-build.eclass: add multilib_native_usev
From:       David Seifert <soap () gentoo ! org>
Date:       2022-08-30 8:28:14
Message-ID: 20220830082814.1304211-2-soap () gentoo ! org
[Download RAW message or body]

Signed-off-by: David Seifert <soap@gentoo.org>
---
 eclass/multilib-build.eclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass
index 76948baf539..1ea31c0a79e 100644
--- a/eclass/multilib-build.eclass
+++ b/eclass/multilib-build.eclass
@@ -574,6 +574,15 @@ multilib_native_use() {
 	multilib_is_native_abi && use "$@"
 }
 
+# @FUNCTION: multilib_native_usev
+# @USAGE: <flag> [<opt-value>]
+# @DESCRIPTION:
+# Like the standard usev command, but only prints output
+# if multilib_is_native_abi and usev <flag> are true.
+multilib_native_usev() {
+	multilib_is_native_abi && usev "$@"
+}
+
 # @FUNCTION: multilib_native_use_with
 # @USAGE: <flag> [<opt-name> [<opt-value>]]
 # @DESCRIPTION:
-- 
2.37.2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic