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 | 0a0c19386ac433938c06939a5cb4901d3b7b6ab4 (patch) | |
tree | d407c4cf074d60ce720b92209b6d4a2d15bcc585 /eclass | |
parent | Keyworded for ~amd64-linux (diff) | |
download | gentoo-2-0a0c19386ac433938c06939a5cb4901d3b7b6ab4.tar.gz gentoo-2-0a0c19386ac433938c06939a5cb4901d3b7b6ab4.tar.bz2 gentoo-2-0a0c19386ac433938c06939a5cb4901d3b7b6ab4.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 |