Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 20/25] python-single-r2.eclass: PYTHON_MULTI_USEDEP → PYTHON_USEDEP
Date: Sat, 29 Feb 2020 20:48:49
Message-Id: 20200229204201.99290-21-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/25] python-r2 eclass suite by "Michał Górny"
1 Rename PYTHON_MULTI_USEDEP to PYTHON_USEDEP for consistency with other
2 eclasses. Since the old PYTHON_USEDEP API is no longer supported,
3 the name is free again.
4
5 Signed-off-by: Michał Górny <mgorny@g.o>
6 ---
7 eclass/python-single-r2.eclass | 14 +++++++-------
8 1 file changed, 7 insertions(+), 7 deletions(-)
9
10 diff --git a/eclass/python-single-r2.eclass b/eclass/python-single-r2.eclass
11 index 2132141c82aa..2c73ec4d11fb 100644
12 --- a/eclass/python-single-r2.eclass
13 +++ b/eclass/python-single-r2.eclass
14 @@ -21,7 +21,7 @@
15 # The eclass exports PYTHON_SINGLE_USEDEP that is suitable for depending
16 # on other packages using the eclass. Dependencies on packages using
17 # python-r2 should be created via python_gen_cond_dep() function,
18 -# using PYTHON_MULTI_USEDEP placeholder.
19 +# using PYTHON_USEDEP placeholder.
20 #
21 # Please note that packages support multiple Python implementations
22 # (using python-r2 eclass) can not depend on packages not supporting
23 @@ -142,7 +142,7 @@ EXPORT_FUNCTIONS pkg_setup
24 # Python implementations.
25 #
26 # If you need to depend on a multi-impl (python-r2) package, use
27 -# python_gen_cond_dep with PYTHON_MULTI_USEDEP placeholder instead.
28 +# python_gen_cond_dep with PYTHON_USEDEP placeholder instead.
29 #
30 # Example use:
31 # @CODE
32 @@ -154,7 +154,7 @@ EXPORT_FUNCTIONS pkg_setup
33 # python_single_target_python3_4(-)?
34 # @CODE
35
36 -# @ECLASS-VARIABLE: PYTHON_MULTI_USEDEP
37 +# @ECLASS-VARIABLE: PYTHON_USEDEP
38 # @DESCRIPTION:
39 # This is a placeholder variable supported by python_gen_cond_dep,
40 # in order to depend on python-r2 packages built for the same Python
41 @@ -163,7 +163,7 @@ EXPORT_FUNCTIONS pkg_setup
42 # Example use:
43 # @CODE
44 # RDEPEND="$(python_gen_cond_dep '
45 -# dev-python/foo[${PYTHON_MULTI_USEDEP}]
46 +# dev-python/foo[${PYTHON_USEDEP}]
47 # ')"
48 # @CODE
49 #
50 @@ -341,7 +341,7 @@ python_gen_useflags() {
51 # to prevent accidental shell filename expansion.
52 #
53 # In order to enforce USE constraints on the packages, verbatim
54 -# '${PYTHON_SINGLE_USEDEP}' and '${PYTHON_MULTI_USEDEP}' (quoted!) may
55 +# '${PYTHON_SINGLE_USEDEP}' and '${PYTHON_USEDEP}' (quoted!) may
56 # be placed in the dependency specification. It will get expanded within
57 # the function into a proper USE dependency string.
58 #
59 @@ -349,7 +349,7 @@ python_gen_useflags() {
60 # @CODE
61 # PYTHON_COMPAT=( python{2_7,3_{3,4}} pypy )
62 # RDEPEND="$(python_gen_cond_dep \
63 -# 'dev-python/unittest2[${PYTHON_MULTI_USEDEP}]' python2_7 pypy )"
64 +# 'dev-python/unittest2[${PYTHON_USEDEP}]' python2_7 pypy )"
65 # @CODE
66 #
67 # It will cause the variable to look like:
68 @@ -379,7 +379,7 @@ python_gen_cond_dep() {
69 local multi_usedep="python_targets_${impl}(-)"
70
71 matches+=( "python_single_target_${impl}? (
72 - ${dep//\$\{PYTHON_MULTI_USEDEP\}/${multi_usedep}} )" )
73 + ${dep//\$\{PYTHON_USEDEP\}/${multi_usedep}} )" )
74 fi
75 done
76
77 --
78 2.25.1