| 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.114 2012/11/27 00:48:01 tetromino Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.115 2012/12/02 11:07:09 pacho 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: |
| … | |
… | |
| 120 | if use debug ; then |
120 | if use debug ; then |
| 121 | G2CONF="${G2CONF} --enable-debug=yes" |
121 | G2CONF="${G2CONF} --enable-debug=yes" |
| 122 | fi |
122 | fi |
| 123 | fi |
123 | fi |
| 124 | |
124 | |
| 125 | # Prevent a QA warning |
125 | # Starting with EAPI=5, we consider packages installing gtk-doc to be |
| 126 | if has doc ${IUSE} ; then |
126 | # handled by adding DEPEND="dev-util/gtk-doc-am" which provides tools to |
| 127 | grep -q "enable-gtk-doc" configure && G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
127 | # relink URLs in documentation to already installed documentation. |
|
|
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 |
|
|
130 | # rebuild docs. |
|
|
131 | # Preserve old behavior for older EAPI. |
|
|
132 | if grep -q "enable-gtk-doc" configure ; then |
|
|
133 | if has ${EAPI-0} 0 1 2 3 4 && has doc ${IUSE} ; then |
|
|
134 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
|
|
135 | else |
|
|
136 | G2CONF="${G2CONF} --disable-gtk-doc" |
|
|
137 | fi |
| 128 | fi |
138 | fi |
| 129 | |
139 | |
| 130 | # Pass --disable-maintainer-mode when needed |
140 | # Pass --disable-maintainer-mode when needed |
| 131 | if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" configure.*; then |
141 | if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" configure.*; then |
| 132 | G2CONF="${G2CONF} --disable-maintainer-mode" |
142 | G2CONF="${G2CONF} --disable-maintainer-mode" |