/[gentoo-x86]/eclass/gnome2.eclass
Gentoo

Diff of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.117 Revision 1.118
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.117 2012/12/16 14:11:58 eva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.118 2013/01/13 22:35:28 eva Exp $
4 4
5# @ECLASS: gnome2.eclass 5# @ECLASS: gnome2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gnome@gentoo.org 7# gnome@gentoo.org
8# @BLURB: 8# @BLURB:
116# Gnome specific configure handling 116# Gnome specific configure handling
117gnome2_src_configure() { 117gnome2_src_configure() {
118 # Update the GNOME configuration options 118 # Update the GNOME configuration options
119 if [[ ${GCONF_DEBUG} != 'no' ]] ; then 119 if [[ ${GCONF_DEBUG} != 'no' ]] ; then
120 if use debug ; then 120 if use debug ; then
121 G2CONF="${G2CONF} --enable-debug=yes" 121 G2CONF="--enable-debug=yes ${G2CONF}"
122 fi 122 fi
123 fi 123 fi
124 124
125 # Starting with EAPI=5, we consider packages installing gtk-doc to be 125 # Starting with EAPI=5, we consider packages installing gtk-doc to be
126 # handled by adding DEPEND="dev-util/gtk-doc-am" which provides tools to 126 # handled by adding DEPEND="dev-util/gtk-doc-am" which provides tools to
128 # This decision also greatly helps with constantly broken doc generation. 128 # This decision also greatly helps with constantly broken doc generation.
129 # Remember to drop 'doc' USE flag from your package if it was only used to 129 # Remember to drop 'doc' USE flag from your package if it was only used to
130 # rebuild docs. 130 # rebuild docs.
131 # Preserve old behavior for older EAPI. 131 # Preserve old behavior for older EAPI.
132 if grep -q "enable-gtk-doc" ${ECONF_SOURCE:-.}/configure ; then 132 if grep -q "enable-gtk-doc" ${ECONF_SOURCE:-.}/configure ; then
133 if has ${EAPI-0} 0 1 2 3 4 && has doc ${IUSE} ; then 133 if has ${EAPI:-0} 0 1 2 3 4 && has doc ${IUSE} ; then
134 G2CONF="${G2CONF} $(use_enable doc gtk-doc)" 134 G2CONF="$(use_enable doc gtk-doc) ${G2CONF}"
135 else 135 else
136 G2CONF="${G2CONF} --disable-gtk-doc" 136 G2CONF="--disable-gtk-doc ${G2CONF}"
137 fi 137 fi
138 fi 138 fi
139 139
140 # Pass --disable-maintainer-mode when needed 140 # Pass --disable-maintainer-mode when needed
141 if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \ 141 if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \
142 ${ECONF_SOURCE:-.}/configure.*; then 142 ${ECONF_SOURCE:-.}/configure.*; then
143 G2CONF="${G2CONF} --disable-maintainer-mode" 143 G2CONF="--disable-maintainer-mode ${G2CONF}"
144 fi 144 fi
145 145
146 # Pass --disable-scrollkeeper when possible 146 # Pass --disable-scrollkeeper when possible
147 if grep -q "disable-scrollkeeper" ${ECONF_SOURCE:-.}/configure; then 147 if grep -q "disable-scrollkeeper" ${ECONF_SOURCE:-.}/configure; then
148 G2CONF="${G2CONF} --disable-scrollkeeper" 148 G2CONF="--disable-scrollkeeper ${G2CONF}"
149 fi 149 fi
150 150
151 # Pass --disable-silent-rules when possible (not needed for eapi5), bug #429308 151 # Pass --disable-silent-rules when possible (not needed for eapi5), bug #429308
152 if has ${EAPI:-0} 0 1 2 3 4; then 152 if has ${EAPI:-0} 0 1 2 3 4; then
153 if grep -q "disable-silent-rules" ${ECONF_SOURCE:-.}/configure; then 153 if grep -q "disable-silent-rules" ${ECONF_SOURCE:-.}/configure; then
154 G2CONF="${G2CONF} --disable-silent-rules" 154 G2CONF="--disable-silent-rules ${G2CONF}"
155 fi 155 fi
156 fi 156 fi
157 157
158 # Pass --disable-schemas-install when possible 158 # Pass --disable-schemas-install when possible
159 if grep -q "disable-schemas-install" ${ECONF_SOURCE:-.}/configure; then 159 if grep -q "disable-schemas-install" ${ECONF_SOURCE:-.}/configure; then
160 G2CONF="${G2CONF} --disable-schemas-install" 160 G2CONF="--disable-schemas-install ${G2CONF}"
161 fi 161 fi
162 162
163 # Pass --disable-schemas-compile when possible 163 # Pass --disable-schemas-compile when possible
164 if grep -q "disable-schemas-compile" ${ECONF_SOURCE:-.}/configure; then 164 if grep -q "disable-schemas-compile" ${ECONF_SOURCE:-.}/configure; then
165 G2CONF="${G2CONF} --disable-schemas-compile" 165 G2CONF="--disable-schemas-compile ${G2CONF}"
166 fi 166 fi
167 167
168 # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) 168 # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659)
169 addwrite "$(unset HOME; echo ~)/.gnome2" 169 addwrite "$(unset HOME; echo ~)/.gnome2"
170 170
171 econf "$@" ${G2CONF} 171 econf ${G2CONF} "$@"
172} 172}
173 173
174# @FUNCTION: gnome2_src_compile 174# @FUNCTION: gnome2_src_compile
175# @DESCRIPTION: 175# @DESCRIPTION:
176# Stub function for old EAPI. 176# Stub function for old EAPI.

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118

  ViewVC Help
Powered by ViewVC 1.1.20