diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-11-03 17:39:59 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-11-03 17:39:59 +0000 |
commit | 50ac74fcaf4f72f799fd079cd57143414cc14f50 (patch) | |
tree | a862cbca08676d37a9debaa6be73c0148faad104 /eclass | |
parent | Keyworded for ~amd64-linux (diff) | |
download | historical-50ac74fcaf4f72f799fd079cd57143414cc14f50.tar.gz historical-50ac74fcaf4f72f799fd079cd57143414cc14f50.tar.bz2 historical-50ac74fcaf4f72f799fd079cd57143414cc14f50.zip |
Convert XFCONF to an array
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xfconf.eclass | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass index 7b3afcccfd75..5e3c4a446e71 100644 --- a/eclass/xfconf.eclass +++ b/eclass/xfconf.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.18 2010/09/16 17:09:51 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.19 2010/11/03 17:39:59 ssuominen Exp $ # @ECLASS: xfconf.eclass # @MAINTAINER: @@ -116,7 +116,13 @@ xfconf_src_prepare() { # Run econf with opts in XFCONF variable xfconf_src_configure() { debug-print-function ${FUNCNAME} "$@" - econf ${XFCONF} + + # Convert XFCONF to an array, see base.eclass for original code + if [[ "$(declare -p XFCONF 2>/dev/null 2>&1)" != "declare -a"* ]]; then + XFCONF=( ${XFCONF} ) + fi + + econf ${XFCONF[@]} } # @FUNCTION: xfconf_src_compile |