From 9e01d57397da795b713c3b926c2ed3e4377d5211 Mon Sep 17 00:00:00 2001 From: "John N. Laliberte" Date: Wed, 7 Jun 2006 21:13:17 +0000 Subject: [PATCH] add GCONF_DEBUG var to opt-out of default behavior for adding debug use flag. fixes #135024 --- eclass/gnome2.eclass | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index a8c4553831fc..fc87792836aa 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.70 2006/04/23 15:21:46 allanonjl Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.71 2006/06/07 21:13:17 allanonjl Exp $ # GNOME 2 ECLASS inherit libtool gnome.org debug fdo-mime eutils @@ -26,7 +26,9 @@ SCROLLKEEPER_UPDATE_BIN=${SCROLLKEEPER_UPDATE_BIN:="${ROOT}/usr/bin/scrollkeeper # Path to gconftool-2 GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"} -IUSE="debug" +if [[ ${GCONF_DEBUG} != "no" ]]; then + IUSE="debug" +fi DEPEND=">=sys-apps/sed-4" @@ -40,7 +42,9 @@ gnome2_src_unpack() { gnome2_src_configure() { # Update the GNOME configuration options - use debug && G2CONF="${G2CONF} --enable-debug=yes" + if [[ ${GCONF_DEBUG} != 'no' ]] || use debug ; then + use debug && G2CONF="${G2CONF} --enable-debug=yes" + fi G2CONF="${G2CONF} $(use_enable doc gtk-doc)" # Run libtoolize -- 2.26.2