[prev in list] [next in list] [prev in thread] [next in thread]
List: gentoo-dev
Subject: [gentoo-dev] [PATCH 4/6] distutils-r1.eclass: Move DISTUTILS_OPTIONAL check into set_globals
From: Michał Górny <mgorny () gentoo ! org>
Date: 2022-01-31 22:59:18
Message-ID: 20220131225920.192125-5-mgorny () gentoo ! org
[Download RAW message or body]
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/distutils-r1.eclass | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 8942a6149c93..4a9fdb4018b4 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -213,15 +213,17 @@ _distutils_set_globals() {
[[ -n ${rdep} ]] && rdep="$(python_gen_cond_dep "${rdep}")"
fi
- RDEPEND="${PYTHON_DEPS} ${rdep}"
- if [[ ${EAPI} != 6 ]]; then
- BDEPEND="${PYTHON_DEPS} ${bdep}"
- else
- DEPEND="${PYTHON_DEPS} ${bdep}"
+ if [[ ! ${DISTUTILS_OPTIONAL} ]]; then
+ RDEPEND="${PYTHON_DEPS} ${rdep}"
+ if [[ ${EAPI} != 6 ]]; then
+ BDEPEND="${PYTHON_DEPS} ${bdep}"
+ else
+ DEPEND="${PYTHON_DEPS} ${bdep}"
+ fi
+ REQUIRED_USE=${PYTHON_REQUIRED_USE}
fi
- REQUIRED_USE=${PYTHON_REQUIRED_USE}
}
-[[ ! ${DISTUTILS_OPTIONAL} ]] && _distutils_set_globals
+_distutils_set_globals
unset -f _distutils_set_globals
# @ECLASS-VARIABLE: PATCHES
--
2.35.1
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic