1 | # Copyright 1999-2013 Gentoo Foundation |
1 | # Copyright 1999-2014 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.124 2013/09/29 08:49:53 pacho Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.125 2014/02/11 21:14:20 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: Provides phases for Gnome/Gtk+ based packages. |
8 | # @BLURB: Provides phases for Gnome/Gtk+ based packages. |
… | |
… | |
161 | # Pass --enable-compile-warnings=minimum as we don't want -Werror* flags, bug #471336 |
161 | # Pass --enable-compile-warnings=minimum as we don't want -Werror* flags, bug #471336 |
162 | if grep -q "enable-compile-warnings" "${ECONF_SOURCE:-.}"/configure; then |
162 | if grep -q "enable-compile-warnings" "${ECONF_SOURCE:-.}"/configure; then |
163 | G2CONF="--enable-compile-warnings=minimum ${G2CONF}" |
163 | G2CONF="--enable-compile-warnings=minimum ${G2CONF}" |
164 | fi |
164 | fi |
165 | |
165 | |
|
|
166 | # Pass --docdir with proper directory, bug #482646 |
|
|
167 | if grep -q "^ *--docdir=" "${ECONF_SOURCE:-.}"/configure; then |
|
|
168 | G2CONF="--docdir="${EPREFIX}"/usr/share/doc/${PF} ${G2CONF}" |
|
|
169 | fi |
|
|
170 | |
166 | # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) |
171 | # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) |
167 | addwrite "$(unset HOME; echo ~)/.gnome2" |
172 | addwrite "$(unset HOME; echo ~)/.gnome2" |
168 | |
173 | |
169 | econf ${G2CONF} "$@" |
174 | econf ${G2CONF} "$@" |
170 | } |
175 | } |