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

Diff of /eclass/gnome2.eclass

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

Revision 1.48 Revision 1.53
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.48 2005/06/05 16:33:18 foser Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.53 2005/07/11 15:08:06 swegener Exp $
4# 4#
5# Authors: 5# Authors:
6# Bruce A. Locke <blocke@shivan.org> 6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spider@gentoo.org> 7# Spidler <spider@gentoo.org>
8 8
9inherit libtool gnome.org debug fdo-mime 9inherit libtool gnome.org debug fdo-mime
10 10
11# Gnome 2 ECLASS 11# Gnome 2 ECLASS
12ECLASS="gnome2"
13INHERITED="$INHERITED $ECLASS"
14 12
15G2CONF="" # extra configure opts passed to econf 13G2CONF="" # extra configure opts passed to econf
16ELTCONF="" # extra options passed to elibtoolize 14ELTCONF="" # extra options passed to elibtoolize
17SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package 15SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
18USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall 16USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall
19IUSE="debug" 17IUSE="debug doc"
20use debug && G2CONF="${G2CONF} --enable-debug=yes" 18use debug && G2CONF="${G2CONF} --enable-debug=yes"
21 19
22DEPEND="${DEPEND} >=sys-apps/sed-4" 20DEPEND=">=sys-apps/sed-4"
23 21
24gnome2_src_configure() { 22gnome2_src_configure() {
25 23
26 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF} 24 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF}
27 elibtoolize ${ELTCONF} 25 elibtoolize ${ELTCONF}
28 26
29 # doc keyword for gtk-doc 27 # doc keyword for gtk-doc
30 use doc \
31 && G2CONF="${G2CONF} --enable-gtk-doc" \ 28 G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
32 || G2CONF="${G2CONF} --disable-gtk-doc"
33 29
34 econf "$@" ${G2CONF} || die "./configure failure" 30 econf "$@" ${G2CONF} || die "./configure failure"
35 31
36} 32}
37 33
84 80
85 if [ -x ${ROOT}/usr/bin/gconftool-2 ] 81 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
86 then 82 then
87 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 83 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
88 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` 84 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
89 einfo "Installing GNOME 2 GConf schemas" 85 einfo "Installing GNOME 2 GConf schemas"
90 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do 86 grep "obj /etc/gconf/schemas" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS | sed 's:obj \([^ ]*\) .*:\1:' | while read F; do
87 if [ -e "${F}" ]; then
91 # echo "DEBUG::gconf install ${F}" 88 # echo "DEBUG::gconf install ${F}"
92 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null 89 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null
90 fi
93 done 91 done
94 fi 92 fi
95 93
96} 94}
97 95
99 97
100 if [ -x ${ROOT}/usr/bin/gconftool-2 ] 98 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
101 then 99 then
102 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 100 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
103 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` 101 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
104 einfo "Uninstalling GNOME 2 GConf schemas" 102 einfo "Uninstalling GNOME 2 GConf schemas"
105 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do 103 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
106 # echo "DEBUG::gconf install ${F}" 104 # echo "DEBUG::gconf install ${F}"
107 ${ROOT}/usr/bin/gconftool-2 --makefile-uninstall-rule ${F} 1>/dev/null 105 ${ROOT}/usr/bin/gconftool-2 --makefile-uninstall-rule ${F} 1>/dev/null
108 done 106 done
109 fi 107 fi
113gnome2_omf_fix() { 111gnome2_omf_fix() {
114 112
115 # workaround/patch against omf.make or omf-install/Makefile.in 113 # workaround/patch against omf.make or omf-install/Makefile.in
116 # in order to remove redundant scrollkeeper-updates. 114 # in order to remove redundant scrollkeeper-updates.
117 # - <liquidx@gentoo.org> 115 # - <liquidx@gentoo.org>
118 116
119 local omf_makefiles 117 local omf_makefiles
120 118
121 omf_makefiles="$@" 119 omf_makefiles="$@"
122 120
123 [ -f ${S}/omf-install/Makefile.in ] \ 121 [ -f ${S}/omf-install/Makefile.in ] \
124 && omf_makefiles="${omf_makefiles} ${S}/omf-install/Makefile.in" 122 && omf_makefiles="${omf_makefiles} ${S}/omf-install/Makefile.in"
125 123
126 # FIXME: does this really work? because omf.make only gets included 124 # FIXME: does this really work? because omf.make only gets included
127 # when autoconf/automake is run. You should directly patch 125 # when autoconf/automake is run. You should directly patch
128 # the Makefile.in's 126 # the Makefile.in's
129 127
130 [ -f ${S}/omf.make ] \ 128 [ -f ${S}/omf.make ] \
131 && omf_makefiles="${omf_makefiles} ${S}/omf.make" 129 && omf_makefiles="${omf_makefiles} ${S}/omf.make"
132 130
133 for omf in ${omf_makefiles}; do 131 for omf in ${omf_makefiles}; do
134 omfbase=$(basename ${omf}) 132 omfbase=$(basename ${omf})
169 fdo-mime_desktop_database_update 167 fdo-mime_desktop_database_update
170 fdo-mime_mime_database_update 168 fdo-mime_mime_database_update
171 169
172} 170}
173 171
174
175#EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm pkg_postrm 172#EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm pkg_postrm
176EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 173EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm
177
178

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20