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

Diff of /eclass/gnome2.eclass

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

Revision 1.97 Revision 1.103
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.103 2011/11/14 06:10:32 tetromino 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.
89gnome2_src_prepare() { 90gnome2_src_prepare() {
91 # Prevent assorted access violations and test failures
92 gnome2_environment_reset
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 # Pass --disable-maintainer-mode when needed
120 addwrite "/root/.gnome2" 124 if grep -q "^[[:space:]]*AM_MAINTAINER_MODE(\[enable\])" configure.*; then
125 G2CONF="${G2CONF} --disable-maintainer-mode"
126 fi
121 127
122 # GST_REGISTRY is to work around gst-inspect trying to read/write /root 128 # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659)
123 GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} 129 addwrite "$(unset HOME; echo ~)/.gnome2"
130
131 econf "$@" ${G2CONF}
124} 132}
125 133
126# @FUNCTION: gnome2_src_compile 134# @FUNCTION: gnome2_src_compile
127# @DESCRIPTION: 135# @DESCRIPTION:
128# Stub function for old EAPI. 136# Stub function for old EAPI.
173 rm -fr "${ED}/usr/share/applications/mimeinfo.cache" 181 rm -fr "${ED}/usr/share/applications/mimeinfo.cache"
174 182
175 # Delete all .la files 183 # Delete all .la files
176 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then 184 if [[ "${GNOME2_LA_PUNT}" != "no" ]]; then
177 ebegin "Removing .la files" 185 ebegin "Removing .la files"
186 if ! { has static-libs ${IUSE//+} && use static-libs; }; then
178 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed" 187 find "${D}" -name '*.la' -exec rm -f {} + || die "la file removal failed"
188 fi
179 eend 189 eend
180 fi 190 fi
181} 191}
182 192
183# @FUNCTION: gnome2_pkg_preinst 193# @FUNCTION: gnome2_pkg_preinst

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.103

  ViewVC Help
Powered by ViewVC 1.1.20