|
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_USE |
| 63 |
# @DEFAULT_UNSET |
| 64 |
# @DESCRIPTION: |
| 65 |
# comma seperated list of useflags needed for python |
| 66 |
# this is directly substituted into dev-lang/python[${PYTHON_USE}] thus allowing |
| 67 |
# all valid useflag dependencies |
| 68 |
# example 1: PYTHON_USE="xml,sqlite" |
| 69 |
# example 2: PYTHON_USE="xml?,threads?,-foo" |
| 70 |
|
| 71 |
# @ECLASS-VARIABLE: JYTHON_USE |
| 72 |
# @DEFAULT_UNSET |
| 73 |
# @DESCRIPTION: |
| 74 |
# same as PYTHON_USE just for JYTHON |
| 75 |
|
| 76 |
# @ECLASS-VARIABLE: PYPY_USE |
| 77 |
# @DEFAULT_UNSET |
| 78 |
# @DESCRIPTION: |
| 79 |
# same as PYTHON_USE just for PYPY |
| 80 |
|
| 62 |
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install |
81 |
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install |
| 63 |
|
82 |
|
| 64 |
case "${EAPI}" in |
83 |
case "${EAPI}" in |
|
Lines 107-122
Link Here
|
| 107 |
fi |
126 |
fi |
| 108 |
unset required_use_str |
127 |
unset required_use_str |
| 109 |
|
128 |
|
|
|
129 |
# avoid empty use deps |
| 130 |
_PYTHON_USE="${PYTHON_USE:+[${PYTHON_USE}]}" |
| 131 |
_JYTHON_USE="${JYTHON_USE:+[${JYTHON_USE}]}" |
| 132 |
_PYPY_USE="${PYPY_USE:+[${PYPY_USE}]}" |
| 133 |
|
| 134 |
# set python DEPEND and RDEPEND |
| 110 |
for impl in ${PYTHON_COMPAT}; do |
135 |
for impl in ${PYTHON_COMPAT}; do |
| 111 |
IUSE+=" python_targets_${impl}" |
136 |
IUSE+=" python_targets_${impl}" |
| 112 |
dep_str="${impl/_/.}" |
137 |
dep_str="${impl/_/.}" |
| 113 |
case "${dep_str}" in |
138 |
case "${dep_str}" in |
| 114 |
python?.?) |
139 |
python?.?) |
| 115 |
dep_str="dev-lang/python:${dep_str: -3}" ;; |
140 |
dep_str="dev-lang/python:${dep_str: -3}${_PYTHON_USE}" ;; |
| 116 |
jython?.?) |
141 |
jython?.?) |
| 117 |
dep_str="dev-java/jython:${dep_str: -3}" ;; |
142 |
dep_str="dev-java/jython:${dep_str: -3}${_JYTHON_USE}" ;; |
| 118 |
pypy?.?) |
143 |
pypy?.?) |
| 119 |
dep_str="dev-python/pypy:${dep_str: -3}" ;; |
144 |
dep_str="dev-python/pypy:${dep_str: -3}${_PYPY_USE}" ;; |
| 120 |
*) |
145 |
*) |
| 121 |
die "Unsupported implementation: ${impl}" ;; |
146 |
die "Unsupported implementation: ${impl}" ;; |
| 122 |
esac |
147 |
esac |