summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2012-03-26 18:27:58 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2012-03-26 18:27:58 +0000
commitb952919ae01cdc55fc3f93254da7ea7f17988c39 (patch)
treebb2f27d9c6369286bad379a0ed92948acb359f61 /eclass
parentRe-add previously dropped keywords for prefix, bug 397819. Remove old. (diff)
downloadgentoo-2-b952919ae01cdc55fc3f93254da7ea7f17988c39.tar.gz
gentoo-2-b952919ae01cdc55fc3f93254da7ea7f17988c39.tar.bz2
gentoo-2-b952919ae01cdc55fc3f93254da7ea7f17988c39.zip
Small fixes: use +=, cleanup used variables, white space.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog6
-rw-r--r--eclass/python-distutils-ng.eclass12
2 files changed, 12 insertions, 6 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index b91d22c19ea7..425050e42cc6 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.188 2012/03/26 16:24:31 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.189 2012/03/26 18:27:58 nelchael Exp $
+
+ 26 Mar 2012; Krzysztof Pawlik <nelchael@gentoo.org>
+ python-distutils-ng.eclass:
+ Small fixes: use +=, cleanup used variables, white space.
26 Mar 2012; Krzysztof Pawlik <nelchael@gentoo.org>
python-distutils-ng.eclass:
diff --git a/eclass/python-distutils-ng.eclass b/eclass/python-distutils-ng.eclass
index 0d0b0020c771..8a43b2669a58 100644
--- a/eclass/python-distutils-ng.eclass
+++ b/eclass/python-distutils-ng.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v 1.3 2012/03/26 16:24:31 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-distutils-ng.eclass,v 1.4 2012/03/26 18:27:58 nelchael Exp $
# @ECLASS: python-distutils-ng
# @MAINTAINER:
@@ -107,19 +107,20 @@ _python-distutils-ng_get_binary_for_implementation() {
required_use_str=""
for impl in ${PYTHON_COMPAT}; do
- required_use_str="${required_use_str} python_targets_${impl}"
+ required_use_str+=" python_targets_${impl}"
done
required_use_str=" || ( ${required_use_str} )"
if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then
- IUSE+="python"
+ IUSE+=" python"
REQUIRED_USE+=" python? ( ${required_use_str} )"
else
REQUIRED_USE+=" ${required_use_str}"
fi
+unset required_use_str
for impl in ${PYTHON_COMPAT}; do
- IUSE+=" python_targets_${impl} "
- local dep_str="python_targets_${impl}? ( $(_python-distutils-ng_generate_depend "${impl}") )"
+ IUSE+=" python_targets_${impl}"
+ dep_str="python_targets_${impl}? ( $(_python-distutils-ng_generate_depend "${impl}") )"
if [[ "${PYTHON_OPTIONAL}" = "yes" ]]; then
RDEPEND="${RDEPEND} python? ( ${dep_str} )"
@@ -128,6 +129,7 @@ for impl in ${PYTHON_COMPAT}; do
RDEPEND="${RDEPEND} ${dep_str}"
DEPEND="${DEPEND} ${dep_str}"
fi
+ unset dep_str
done
_PACKAGE_SPECIFIC_S="${S#${WORKDIR}/}"