* [gentoo-dev] [PATCH 1/2] multilib-build.eclass: add multilib_native_use
@ 2022-08-30 8:28 David Seifert
2022-08-30 8:28 ` [gentoo-dev] [PATCH 2/2] multilib-build.eclass: add multilib_native_usev David Seifert
0 siblings, 1 reply; 2+ messages in thread
From: David Seifert @ 2022-08-30 8:28 UTC (permalink / raw
To: gentoo-dev; +Cc: David Seifert
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 42efdc9def6..76948baf539 100644
--- a/eclass/multilib-build.eclass
+++ b/eclass/multilib-build.eclass
@@ -565,6 +565,15 @@ multilib_is_native_abi() {
[[ ${COMPLETE_MULTILIB} == yes || ${ABI} == ${DEFAULT_ABI} ]]
}
+# @FUNCTION: multilib_native_use
+# @USAGE: <flag>
+# @DESCRIPTION:
+# Like the standard use command, but only yields true if
+# multilib_is_native_abi and use <flag> are true, otherwise false.
+multilib_native_use() {
+ multilib_is_native_abi && use "$@"
+}
+
# @FUNCTION: multilib_native_use_with
# @USAGE: <flag> [<opt-name> [<opt-value>]]
# @DESCRIPTION:
--
2.37.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-dev] [PATCH 2/2] multilib-build.eclass: add multilib_native_usev
2022-08-30 8:28 [gentoo-dev] [PATCH 1/2] multilib-build.eclass: add multilib_native_use David Seifert
@ 2022-08-30 8:28 ` David Seifert
0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2022-08-30 8:28 UTC (permalink / raw
To: gentoo-dev; +Cc: David Seifert
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-30 8:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-30 8:28 [gentoo-dev] [PATCH 1/2] multilib-build.eclass: add multilib_native_use David Seifert
2022-08-30 8:28 ` [gentoo-dev] [PATCH 2/2] multilib-build.eclass: add multilib_native_usev David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox