1 |
commit: c5fd7edc168d5365a04392a37ec4812c4e603aa0 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 1 18:58:39 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 1 19:02:13 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5fd7edc |
7 |
|
8 |
sys-apps/i2c-tools: Fix Python dependencies |
9 |
|
10 |
DISTUTILS_USE_SETUPTOOLS is not used with DISTUTILS_OPTIONAL, the dep |
11 |
on setuptools needs to be declared explicitly. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
sys-apps/i2c-tools/i2c-tools-4.3.ebuild | 9 ++++++--- |
16 |
1 file changed, 6 insertions(+), 3 deletions(-) |
17 |
|
18 |
diff --git a/sys-apps/i2c-tools/i2c-tools-4.3.ebuild b/sys-apps/i2c-tools/i2c-tools-4.3.ebuild |
19 |
index 08557d67f1fa..1b4f3d12d061 100644 |
20 |
--- a/sys-apps/i2c-tools/i2c-tools-4.3.ebuild |
21 |
+++ b/sys-apps/i2c-tools/i2c-tools-4.3.ebuild |
22 |
@@ -1,11 +1,10 @@ |
23 |
-# Copyright 1999-2021 Gentoo Authors |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
EAPI=8 |
28 |
|
29 |
PYTHON_COMPAT=( python{3_8,3_9} ) |
30 |
DISTUTILS_OPTIONAL="1" |
31 |
-DISTUTILS_USE_SETUPTOOLS=bdepend |
32 |
|
33 |
inherit distutils-r1 flag-o-matic toolchain-funcs |
34 |
|
35 |
@@ -21,7 +20,11 @@ REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
36 |
|
37 |
RDEPEND=" |
38 |
python? ( ${PYTHON_DEPS} )" |
39 |
-DEPEND="${RDEPEND}" |
40 |
+BDEPEND=" |
41 |
+ python? ( |
42 |
+ ${PYTHON_DEPS} |
43 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
44 |
+ )" |
45 |
|
46 |
src_prepare() { |
47 |
default |