From e990b63aa9b120c051d443b8a5a949914a0c5faa Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 25 Sep 2011 15:15:21 +0000 Subject: Pass --disable-maintainer-mode when needed, thanks to Nirbheek for his help. --- eclass/gnome2.eclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 979b116ac9b4..9813fc875661 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.101 2011/08/25 18:08:59 nirbheek Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.102 2011/09/25 15:15:21 pacho Exp $ # @ECLASS: gnome2.eclass # @MAINTAINER: @@ -120,6 +120,11 @@ gnome2_src_configure() { G2CONF="${G2CONF} $(use_enable doc gtk-doc)" fi + # Pass --disable-maintainer-mode when needed + if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" configure.*; then + G2CONF="${G2CONF} --disable-maintainer-mode" + fi + # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) addwrite "$(unset HOME; echo ~)/.gnome2" -- cgit v1.2.3-65-gdbad