Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 426768 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +17 lines)
Line  Link Here
0
-- python-distutils-ng.eclass
0
++ python-distutils-ng.eclass
Lines 59-64 Link Here
59
# Set to any value to disable automatic reinstallation of scripts in bin
59
# Set to any value to disable automatic reinstallation of scripts in bin
60
# directories. See python-distutils-ng_src_install function.
60
# directories. See python-distutils-ng_src_install function.
61
61
62
# @ECLASS-VARIABLE: PYTHON_COMPAT_USE
63
# @DEFAULT_UNSET
64
# @DESCRIPTION:
65
# Comma seperated list of useflags needed for all(!) allowed implementations.
66
# This is directly substituted into one or more of dev-lang/python[${PYTHON_COMPAT_USE}],
67
# dev-python/pypy[${PYTHON_COMPAT_USE}] and dev-java/jython[${PYTHON_COMPAT_USE}].
68
# example 1: PYTHON_COMPAT_USE="xml,sqlite"
69
# example 2: PYTHON_COMPAT_USE="xml?,threads?,-foo"
70
62
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
71
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
63
72
64
case "${EAPI}" in
73
case "${EAPI}" in
Lines 107-122 Link Here
107
fi
116
fi
108
unset required_use_str
117
unset required_use_str
109
118
119
# avoid empty use deps
120
_PYTHON_COMPAT_USE="${PYTHON_COMPAT_USE:+[${PYTHON_COMPAT_USE}]}"
121
122
# set python DEPEND and RDEPEND
110
for impl in ${PYTHON_COMPAT}; do
123
for impl in ${PYTHON_COMPAT}; do
111
	IUSE+=" python_targets_${impl}"
124
	IUSE+=" python_targets_${impl}"
112
	dep_str="${impl/_/.}"
125
	dep_str="${impl/_/.}"
113
	case "${dep_str}" in
126
	case "${dep_str}" in
114
		python?.?)
127
		python?.?)
115
			dep_str="dev-lang/python:${dep_str: -3}" ;;
128
			dep_str="dev-lang/python:${dep_str: -3}${_PYTHON_COMPAT_USE}" ;;
116
		jython?.?)
129
		jython?.?)
117
			dep_str="dev-java/jython:${dep_str: -3}" ;;
130
			dep_str="dev-java/jython:${dep_str: -3}${_PYTHON_COMPAT_USE}" ;;
118
		pypy?.?)
131
		pypy?.?)
119
			dep_str="dev-python/pypy:${dep_str: -3}" ;;
132
			dep_str="dev-python/pypy:${dep_str: -3}${_PYTHON_COMPAT_USE}" ;;
120
		*)
133
		*)
121
			die "Unsupported implementation: ${impl}" ;;
134
			die "Unsupported implementation: ${impl}" ;;
122
	esac
135
	esac

Return to bug 426768