python-any-r1.eclass: Move PYTHON_USEDEP doc before globals
authorMichał Górny <mgorny@gentoo.org>
Wed, 1 Mar 2017 08:01:53 +0000 (09:01 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 1 Mar 2017 08:03:03 +0000 (09:03 +0100)
eclass/python-any-r1.eclass

index 3491604dea41790862f426f7e0c4b20543922de3..a1dd4282c1efbad216db8fb2b725e3490310f6c4 100644 (file)
@@ -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: