Pass --disable-maintainer-mode when needed, thanks to Nirbheek for his help.
authorPacho Ramos <pacho@gentoo.org>
Sun, 25 Sep 2011 15:15:21 +0000 (15:15 +0000)
committerPacho Ramos <pacho@gentoo.org>
Sun, 25 Sep 2011 15:15:21 +0000 (15:15 +0000)
eclass/gnome2.eclass

index 979b116ac9b4c958aab39b520e02334cf96656d2..9813fc875661401d88c62a6df29d7ad4c6ffc1bb 100644 (file)
@@ -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"