/[gentoo-x86]/eclass/python-distutils-ng.eclass
Gentoo

Diff of /eclass/python-distutils-ng.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.3 2012/03/26 16:24:31 nelchael Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/python-distutils-ng.eclass,v 1.4 2012/03/26 18:27:58 nelchael Exp $
4 4
5# @ECLASS: python-distutils-ng 5# @ECLASS: python-distutils-ng
6# @MAINTAINER: 6# @MAINTAINER:
7# Python herd <python@gentoo.org> 7# Python herd <python@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
105 esac 105 esac
106} 106}
107 107
108required_use_str="" 108required_use_str=""
109for impl in ${PYTHON_COMPAT}; do 109for impl in ${PYTHON_COMPAT}; do
110 required_use_str="${required_use_str} python_targets_${impl}" 110 required_use_str+=" python_targets_${impl}"
111done 111done
112required_use_str=" || ( ${required_use_str} )" 112required_use_str=" || ( ${required_use_str} )"
113if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then 113if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then
114 IUSE+="python" 114 IUSE+=" python"
115 REQUIRED_USE+=" python? ( ${required_use_str} )" 115 REQUIRED_USE+=" python? ( ${required_use_str} )"
116else 116else
117 REQUIRED_USE+=" ${required_use_str}" 117 REQUIRED_USE+=" ${required_use_str}"
118fi 118fi
119unset required_use_str
119 120
120for impl in ${PYTHON_COMPAT}; do 121for impl in ${PYTHON_COMPAT}; do
121 IUSE+=" python_targets_${impl} " 122 IUSE+=" python_targets_${impl}"
122 local dep_str="python_targets_${impl}? ( $(_python-distutils-ng_generate_depend "${impl}") )" 123 dep_str="python_targets_${impl}? ( $(_python-distutils-ng_generate_depend "${impl}") )"
123 124
124 if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then 125 if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then
125 RDEPEND="${RDEPEND} python? ( ${dep_str} )" 126 RDEPEND="${RDEPEND} python? ( ${dep_str} )"
126 DEPEND="${DEPEND} python? ( ${dep_str} )" 127 DEPEND="${DEPEND} python? ( ${dep_str} )"
127 else 128 else
128 RDEPEND="${RDEPEND} ${dep_str}" 129 RDEPEND="${RDEPEND} ${dep_str}"
129 DEPEND="${DEPEND} ${dep_str}" 130 DEPEND="${DEPEND} ${dep_str}"
130 fi 131 fi
132 unset dep_str
131done 133done
132 134
133_PACKAGE_SPECIFIC_S="${S#${WORKDIR}/}" 135_PACKAGE_SPECIFIC_S="${S#${WORKDIR}/}"
134 136
135# @FUNCTION: _python-distutils-ng_run_for_impl 137# @FUNCTION: _python-distutils-ng_run_for_impl

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20