diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-26 11:41:57 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-03-26 11:41:57 +0000 |
commit | 9f0cacc10fc0f504c6245299d72dfd209e03510f (patch) | |
tree | 33bd3eda4a891a57beb89d424980dfa672c2d21d /eclass | |
parent | Todays Python patches added (diff) | |
download | historical-9f0cacc10fc0f504c6245299d72dfd209e03510f.tar.gz historical-9f0cacc10fc0f504c6245299d72dfd209e03510f.tar.bz2 historical-9f0cacc10fc0f504c6245299d72dfd209e03510f.zip |
Introduce new xfconf_use_debug function.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xfconf.eclass | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass index cd3aa1b9fcf5..dac47acd9072 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.10 2010/03/24 20:13:15 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfconf.eclass,v 1.11 2010/03/26 11:41:57 ssuominen Exp $ # @ECLASS: xfconf.eclass # @MAINTAINER: @@ -62,6 +62,24 @@ case ${EAPI:-0} in esac EXPORT_FUNCTIONS ${XFCONF_EXPF} +# @FUNCTION: xfconf_use_debug +# @RETURN: +# Return --enable-debug, --enable-debug=full or --disable-debug based on +# I_KNOW_WHAT_I_AM_DOING variable +xfconf_use_debug() { + if use debug; then + if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then + echo "--enable-debug=full" + else + echo "--enable-debug" + fi + else + if [[ -n $I_KNOW_WHAT_I_AM_DOING ]]; then + echo "--disable-debug" + fi + fi +} + # @FUNCTION: xfconf_src_unpack # @DESCRIPTION: # Run base_src_util autopatch and eautoreconf or elibtoolize |