summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-01-30 10:42:25 +0000
committerMichał Górny <mgorny@gentoo.org>2013-01-30 10:42:25 +0000
commitdd112bf8e547b524b9f474b5476a5181f44ce9a9 (patch)
treec5cfee974622513f42989c0ecd1711e866d08ff1 /eclass/python-r1.eclass
parentold (diff)
downloadhistorical-dd112bf8e547b524b9f474b5476a5181f44ce9a9.tar.gz
historical-dd112bf8e547b524b9f474b5476a5181f44ce9a9.tar.bz2
historical-dd112bf8e547b524b9f474b5476a5181f44ce9a9.zip
Use (-) USE-defaults to reduce issues from removing flags.
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r--eclass/python-r1.eclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass
index 2dec145959a8..5735a6d91314 100644
--- a/eclass/python-r1.eclass
+++ b/eclass/python-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.39 2013/01/27 16:40:15 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.40 2013/01/30 10:42:25 mgorny Exp $
# @ECLASS: python-r1
# @MAINTAINER:
@@ -128,7 +128,7 @@ fi
#
# Example value:
# @CODE
-# python_targets_python2_6?,python_targets_python2_7?
+# python_targets_python2_6(-)?,python_targets_python2_7(-)?
# @CODE
_python_set_globals() {
@@ -150,7 +150,7 @@ _python_set_globals() {
fi
local flags=( "${impls[@]/#/python_targets_}" )
- local optflags=${flags[@]/%/?}
+ local optflags=${flags[@]/%/(-)?}
# A nice QA trick here. Since a python-single-r1 package has to have
# at least one PYTHON_SINGLE_TARGET enabled (REQUIRED_USE),
@@ -229,7 +229,7 @@ python_gen_usedep() {
for pattern; do
if [[ ${impl} == ${pattern} ]]; then
matches+=(
- "python_targets_${impl}?"
+ "python_targets_${impl}(-)?"
"-python_single_target_${impl}(-)"
)
break