From 9f0cacc10fc0f504c6245299d72dfd209e03510f Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Fri, 26 Mar 2010 11:41:57 +0000 Subject: [PATCH] Introduce new xfconf_use_debug function. --- eclass/xfconf.eclass | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 -- 2.26.2