aboutsummaryrefslogtreecommitdiff
blob: 1066a5ade5fe67825a079f3e3a2109af847352f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# @ECLASS_VARIABLE: PYTHON_DEPS
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

# @ECLASS_VARIABLE: PYTHON_USEDEP
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

# @ECLASS_VARIABLE: PYTHON_REQUIRED_USE
# @DESCRIPTION:
# See the variable docs in the related gentoo repo eclass.

_python_set_impls() {
	local i slot
	local -a use
	for i in "${PYTHON_COMPAT[@]}"; do
		slot=${i#python}
		slot=${slot/_/.}
		use+=( "python_targets_${i}" )
		PYTHON_DEPS+=" python_targets_${i}? ( dev-lang/python:${slot} )"
	done
	IUSE+=" ${use[@]}"
	PYTHON_REQUIRED_USE="|| ( ${use[@]} )"
	PYTHON_USEDEP=$(IFS=","; echo "${use[*]}")
}
_python_set_impls

python_gen_any_dep() { :; }
python_gen_cond_dep() { :; }