| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.97 2011/07/08 11:35:01 ssuominen Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.100 2011/08/24 07:12:35 ford_prefect 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: |
| … | |
… | |
| 83 | has ${EAPI:-0} 0 1 && gnome2_src_prepare |
83 | has ${EAPI:-0} 0 1 && gnome2_src_prepare |
| 84 | } |
84 | } |
| 85 | |
85 | |
| 86 | # @FUNCTION: gnome2_src_prepare |
86 | # @FUNCTION: gnome2_src_prepare |
| 87 | # @DESCRIPTION: |
87 | # @DESCRIPTION: |
| 88 | # Fix build of scrollkeeper documentation and run elibtoolize. |
88 | # Prepare environment for build, fix build of scrollkeeper documentation, |
|
|
89 | # run elibtoolize. |
| 89 | gnome2_src_prepare() { |
90 | gnome2_src_prepare() { |
|
|
91 | # GST_REGISTRY is to work around gst utilities trying to read/write /root |
|
|
92 | export GST_REGISTRY="${S}/registry.xml" |
|
|
93 | |
| 90 | # Prevent scrollkeeper access violations |
94 | # Prevent scrollkeeper access violations |
| 91 | gnome2_omf_fix |
95 | gnome2_omf_fix |
| 92 | |
96 | |
| 93 | # Run libtoolize |
97 | # Run libtoolize |
| 94 | if has ${EAPI:-0} 0 1 2 3; then |
98 | if has ${EAPI:-0} 0 1 2 3; then |
| … | |
… | |
| 114 | # Prevent a QA warning |
118 | # Prevent a QA warning |
| 115 | if has doc ${IUSE} ; then |
119 | if has doc ${IUSE} ; then |
| 116 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
120 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
| 117 | fi |
121 | fi |
| 118 | |
122 | |
| 119 | # Avoid sandbox violations caused by misbehaving packages (bug #128289) |
123 | # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) |
| 120 | addwrite "/root/.gnome2" |
124 | addwrite "$(unset HOME; echo ~)/.gnome2" |
| 121 | |
125 | |
| 122 | # GST_REGISTRY is to work around gst-inspect trying to read/write /root |
126 | econf "$@" ${G2CONF} |
| 123 | GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} |
|
|
| 124 | } |
127 | } |
| 125 | |
128 | |
| 126 | # @FUNCTION: gnome2_src_compile |
129 | # @FUNCTION: gnome2_src_compile |
| 127 | # @DESCRIPTION: |
130 | # @DESCRIPTION: |
| 128 | # Stub function for old EAPI. |
131 | # Stub function for old EAPI. |
| … | |
… | |
| 173 | rm -fr "${ED}/usr/share/applications/mimeinfo.cache" |
176 | rm -fr "${ED}/usr/share/applications/mimeinfo.cache" |
| 174 | |
177 | |
| 175 | # Delete all .la files |
178 | # Delete all .la files |
| 176 | if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then |
179 | if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then |
| 177 | ebegin "Removing .la files" |
180 | ebegin "Removing .la files" |
|
|
181 | if ! { has static-libs ${IUSE//+} && use static-libs; }; then |
| 178 | find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
182 | find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" |
|
|
183 | fi |
| 179 | eend |
184 | eend |
| 180 | fi |
185 | fi |
| 181 | } |
186 | } |
| 182 | |
187 | |
| 183 | # @FUNCTION: gnome2_pkg_preinst |
188 | # @FUNCTION: gnome2_pkg_preinst |