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

Diff of /eclass/gnome2.eclass

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

Revision 1.64 Revision 1.71
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.64 2006/03/17 14:43:32 allanonjl Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.71 2006/06/07 21:13:17 allanonjl Exp $
4 4
5# GNOME 2 ECLASS 5# GNOME 2 ECLASS
6inherit libtool gnome.org debug fdo-mime eutils 6inherit libtool gnome.org debug fdo-mime eutils
7 7
8# Extra configure opts passed to econf 8# Extra configure opts passed to econf
24SCROLLKEEPER_UPDATE_BIN=${SCROLLKEEPER_UPDATE_BIN:="${ROOT}/usr/bin/scrollkeeper-update"} 24SCROLLKEEPER_UPDATE_BIN=${SCROLLKEEPER_UPDATE_BIN:="${ROOT}/usr/bin/scrollkeeper-update"}
25 25
26# Path to gconftool-2 26# Path to gconftool-2
27GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"} 27GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"}
28 28
29if [[ ${GCONF_DEBUG} != "no" ]]; then
29IUSE="debug" 30 IUSE="debug"
31fi
30 32
31DEPEND=">=sys-apps/sed-4 33DEPEND=">=sys-apps/sed-4"
32 sys-apps/findutils"
33 34
34gnome2_src_unpack() { 35gnome2_src_unpack() {
35 unpack ${A} 36 unpack ${A}
36 cd ${S} 37 cd ${S}
37 38
39 gnome2_omf_fix 40 gnome2_omf_fix
40} 41}
41 42
42gnome2_src_configure() { 43gnome2_src_configure() {
43 # Update the GNOME configuration options 44 # Update the GNOME configuration options
45 if [[ ${GCONF_DEBUG} != 'no' ]] || use debug ; then
44 use debug && G2CONF="${G2CONF} --enable-debug=yes" 46 use debug && G2CONF="${G2CONF} --enable-debug=yes"
47 fi
45 G2CONF="${G2CONF} $(use_enable doc gtk-doc)" 48 G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
46 49
47 # Run libtoolize 50 # Run libtoolize
48 elibtoolize ${ELTCONF} 51 elibtoolize ${ELTCONF}
52
53 # Do not remove the addwrite. bug #128289
54 addwrite "${ROOT}/root/.gnome2"
49 55
50 # GST_REGISTRY is to work around gst-inspect trying to read/write /root 56 # GST_REGISTRY is to work around gst-inspect trying to read/write /root
51 GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed" 57 GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed"
52} 58}
53 59
64 # we must delay gconf schema installation due to sandbox 70 # we must delay gconf schema installation due to sandbox
65 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 71 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
66 72
67 debug-print "You are testing with DESTDIR by default - AllanonJL" 73 debug-print "You are testing with DESTDIR by default - AllanonJL"
68 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then 74 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then
69 make DESTDIR=${D} "$@" install || die "install failed" 75 make DESTDIR=${D} "scrollkeeper_localstate_dir=${D}${SCROLLKEEPER_DIR} " "$@" install || die "install failed"
70 else 76 else
71 einstall "scrollkeeper_localstate_dir=${D}${SCROLLKEEPER_DIR} " "$@" || die "einstall failed" 77 einstall "scrollkeeper_localstate_dir=${D}${SCROLLKEEPER_DIR} " "$@" || die "einstall failed"
72 fi 78 fi
73 79
74 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 80 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
175 done 181 done
176 182
177 eend ${retval} 183 eend ${retval}
178 184
179 for (( i = 0 ; i < ${#fails[@]} ; i++ )) ; do 185 for (( i = 0 ; i < ${#fails[@]} ; i++ )) ; do
186 ### HACK!! This is needed until bash 3.1 is unmasked.
187 ## The current stable version of bash lists the sizeof fails to be 1
188 ## when there are no elements in the list because it is declared local.
189 ## In order to prevent the declaration from being in global scope, we
190 ## this hack to prevent an empty error message being printed for stable
191 ## users. -- compnerd && allanonjl
192 if [[ "${fails[i]}" != "" && "${fails[i]}" != "()" ]] ; then
180 eerror "Failed to update cache with icon ${fails[i]}" 193 eerror "Failed to update cache with icon ${fails[i]}"
194 fi
181 done 195 done
182} 196}
183 197
184gnome2_omf_fix() { 198gnome2_omf_fix() {
185 # workaround/patch against omf.make or omf-install/Makefile.in 199 # workaround/patch against omf.make or omf-install/Makefile.in
204 218
205 # testing fixing of all makefiles found 219 # testing fixing of all makefiles found
206 for filename in $(find ./ -name "Makefile.in" -o -name "Makefile.am") ; do 220 for filename in $(find ./ -name "Makefile.in" -o -name "Makefile.am") ; do
207 omf_makefiles="${omf_makefiles} ${filename}" 221 omf_makefiles="${omf_makefiles} ${filename}"
208 done 222 done
209 223
210 ebegin "Fixing OMF Makefiles" 224 ebegin "Fixing OMF Makefiles"
211 225
212 local retval=0 226 local retval=0
213 local fails=( ) 227 local fails=( )
214 228
229 done 243 done
230 244
231 eend $retval 245 eend $retval
232 246
233 for (( i = 0 ; i < ${#fails[@]} ; i++ )) ; do 247 for (( i = 0 ; i < ${#fails[@]} ; i++ )) ; do
248 ### HACK!! This is needed until bash 3.1 is unmasked.
249 ## The current stable version of bash lists the sizeof fails to be 1
250 ## when there are no elements in the list because it is declared local.
251 ## In order to prevent the declaration from being in global scope, we
252 ## this hack to prevent an empty error message being printed for stable
253 ## users. -- compnerd && allanonjl
254 if [[ "${fails[i]}" != "" && "${fails[i]}" != "()" ]] ; then
234 eerror "Failed to update OMF Makefile ${fails[i]}" 255 eerror "Failed to update OMF Makefile ${fails[i]}"
256 fi
235 done 257 done
236} 258}
237 259
238gnome2_scrollkeeper_update() { 260gnome2_scrollkeeper_update() {
239 if [[ -x ${SCROLLKEEPER_UPDATE_BIN} && "${SCROLLKEEPER_UPDATE}" = "1" ]] 261 if [[ -x ${SCROLLKEEPER_UPDATE_BIN} && "${SCROLLKEEPER_UPDATE}" = "1" ]]

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.71

  ViewVC Help
Powered by ViewVC 1.1.20