commit:     2b4226390d9bfeec7c17b395c41c4df0f496ada0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  1 08:01:53 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar  1 08:03:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b422639

python-any-r1.eclass: Move PYTHON_USEDEP doc before globals

 eclass/python-any-r1.eclass | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index 3491604dea4..a1dd4282c1e 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -126,25 +126,6 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then
 #      dev-lang/python:2.6[gdbm] )
 # @CODE
 
-_python_any_set_globals() {
-       local usestr i PYTHON_PKG_DEP
-       [[ ${PYTHON_REQ_USE} ]] && usestr="[${PYTHON_REQ_USE}]"
-
-       _python_set_impls
-
-       PYTHON_DEPS=
-       for i in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
-               python_export "${i}" PYTHON_PKG_DEP
-
-               # note: need to strip '=' slot operator for || deps
-               PYTHON_DEPS="${PYTHON_PKG_DEP%=} ${PYTHON_DEPS}"
-       done
-       PYTHON_DEPS="|| ( ${PYTHON_DEPS})"
-       readonly PYTHON_DEPS
-}
-_python_any_set_globals
-unset -f _python_any_set_globals
-
 # @ECLASS-VARIABLE: PYTHON_USEDEP
 # @DESCRIPTION:
 # An eclass-generated USE-dependency string for the currently tested
@@ -166,6 +147,25 @@ unset -f _python_any_set_globals
 # python_targets_python2_7(-)?,python_single_target_python2_7(+)?
 # @CODE
 
+_python_any_set_globals() {
+       local usestr i PYTHON_PKG_DEP
+       [[ ${PYTHON_REQ_USE} ]] && usestr="[${PYTHON_REQ_USE}]"
+
+       _python_set_impls
+
+       PYTHON_DEPS=
+       for i in "${_PYTHON_SUPPORTED_IMPLS[@]}"; do
+               python_export "${i}" PYTHON_PKG_DEP
+
+               # note: need to strip '=' slot operator for || deps
+               PYTHON_DEPS="${PYTHON_PKG_DEP%=} ${PYTHON_DEPS}"
+       done
+       PYTHON_DEPS="|| ( ${PYTHON_DEPS})"
+       readonly PYTHON_DEPS
+}
+_python_any_set_globals
+unset -f _python_any_set_globals
+
 # @FUNCTION: python_gen_any_dep
 # @USAGE: <dependency-block>
 # @DESCRIPTION:

Reply via email to