summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn N. Laliberte <allanonjl@gentoo.org>2006-06-07 21:13:17 +0000
committerJohn N. Laliberte <allanonjl@gentoo.org>2006-06-07 21:13:17 +0000
commit0f5de451087e4b06f30049203b05d546c5b5e470 (patch)
tree9bd9b1c87b63e0b0f5010196acd7ee881ac562db /eclass/gnome2.eclass
parentadded xml IUSE, bug #135972 (diff)
downloadgentoo-2-0f5de451087e4b06f30049203b05d546c5b5e470.tar.gz
gentoo-2-0f5de451087e4b06f30049203b05d546c5b5e470.tar.bz2
gentoo-2-0f5de451087e4b06f30049203b05d546c5b5e470.zip
add GCONF_DEBUG var to opt-out of default behavior for adding debug use flag. fixes #135024
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r--eclass/gnome2.eclass10
1 files 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