| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 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.115 2012/12/02 11:07:09 pacho Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.116 2012/12/05 23:41:52 cardoe 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: |
| … | |
… | |
| 127 | # relink URLs in documentation to already installed documentation. |
127 | # relink URLs in documentation to already installed documentation. |
| 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" 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="${G2CONF} $(use_enable doc gtk-doc)" |
| 135 | else |
135 | else |
| 136 | G2CONF="${G2CONF} --disable-gtk-doc" |
136 | G2CONF="${G2CONF} --disable-gtk-doc" |
| 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\])" configure.*; then |
141 | if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" \ |
|
|
142 | ${ECONF_SOURCE:-.}/configure.*; then |
| 142 | G2CONF="${G2CONF} --disable-maintainer-mode" |
143 | G2CONF="${G2CONF} --disable-maintainer-mode" |
| 143 | fi |
144 | fi |
| 144 | |
145 | |
| 145 | # Pass --disable-scrollkeeper when possible |
146 | # Pass --disable-scrollkeeper when possible |
| 146 | if grep -q "disable-scrollkeeper" configure; then |
147 | if grep -q "disable-scrollkeeper" ${ECONF_SOURCE:-.}/configure; then |
| 147 | G2CONF="${G2CONF} --disable-scrollkeeper" |
148 | G2CONF="${G2CONF} --disable-scrollkeeper" |
| 148 | fi |
149 | fi |
| 149 | |
150 | |
| 150 | # 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 |
| 151 | if has ${EAPI:-0} 0 1 2 3 4; then |
152 | if has ${EAPI:-0} 0 1 2 3 4; then |
| 152 | if grep -q "disable-silent-rules" configure; then |
153 | if grep -q "disable-silent-rules" ${ECONF_SOURCE:-.}/configure; then |
| 153 | G2CONF="${G2CONF} --disable-silent-rules" |
154 | G2CONF="${G2CONF} --disable-silent-rules" |
| 154 | fi |
155 | fi |
| 155 | fi |
156 | fi |
| 156 | |
157 | |
| 157 | # Pass --disable-schemas-install when possible |
158 | # Pass --disable-schemas-install when possible |
| 158 | if grep -q "disable-schemas-install" configure; then |
159 | if grep -q "disable-schemas-install" ${ECONF_SOURCE:-.}/configure; then |
| 159 | G2CONF="${G2CONF} --disable-schemas-install" |
160 | G2CONF="${G2CONF} --disable-schemas-install" |
| 160 | fi |
161 | fi |
| 161 | |
162 | |
| 162 | # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) |
163 | # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) |
| 163 | addwrite "$(unset HOME; echo ~)/.gnome2" |
164 | addwrite "$(unset HOME; echo ~)/.gnome2" |