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

Diff of /eclass/gnome2.eclass

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

Revision 1.83 Revision 1.85
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 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.83 2008/02/10 14:47:14 eva Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.85 2008/03/22 10:19:05 remi Exp $
4 4
5# 5#
6# gnome2.eclass 6# gnome2.eclass
7# 7#
8# Exports portage base functions used by ebuilds written for packages using the 8# Exports portage base functions used by ebuilds written for packages using the
80 # we must delay gconf schema installation due to sandbox 80 # we must delay gconf schema installation due to sandbox
81 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 81 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
82 82
83 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then 83 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then
84 debug-print "Installing with 'make install'" 84 debug-print "Installing with 'make install'"
85 make DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed" 85 emake DESTDIR="${D}" "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" install || die "install failed"
86 else 86 else
87 debug-print "Installing with 'einstall'" 87 debug-print "Installing with 'einstall'"
88 einstall "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" || die "einstall failed" 88 einstall "scrollkeeper_localstate_dir=${D}${sk_tmp_dir} " "$@" || die "einstall failed"
89 fi 89 fi
90 90
95 95
96 # Do not keep /var/lib/scrollkeeper because: 96 # Do not keep /var/lib/scrollkeeper because:
97 # 1. The scrollkeeper database is regenerated at pkg_postinst() 97 # 1. The scrollkeeper database is regenerated at pkg_postinst()
98 # 2. ${D}/var/lib/scrollkeeper contains only indexes for the current pkg 98 # 2. ${D}/var/lib/scrollkeeper contains only indexes for the current pkg
99 # thus it makes no sense if pkg_postinst ISN'T run for some reason. 99 # thus it makes no sense if pkg_postinst ISN'T run for some reason.
100 if [[ -z "$(find ${D} -name '*.omf')" ]]; then 100 if [[ -z "$(find "${D}" -name '*.omf')" ]]; then
101 export SCROLLKEEPER_UPDATE="0" 101 export SCROLLKEEPER_UPDATE="0"
102 fi 102 fi
103 rm -rf "${D}${sk_tmp_dir}" 103 rm -rf "${D}${sk_tmp_dir}"
104 104
105 # Make sure this one doesn't get in the portage db 105 # Make sure this one doesn't get in the portage db
106 rm -fr "${D}/usr/share/applications/mimeinfo.cache" 106 rm -fr "${D}/usr/share/applications/mimeinfo.cache"
107}
108
109gnome2_pkg_preinst() {
110 gnome2_gconf_savelist
111 gnome2_icon_savelist
107} 112}
108 113
109gnome2_pkg_postinst() { 114gnome2_pkg_postinst() {
110 gnome2_gconf_install 115 gnome2_gconf_install
111 fdo-mime_desktop_database_update 116 fdo-mime_desktop_database_update
129 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then 134 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then
130 gnome2_scrollkeeper_update 135 gnome2_scrollkeeper_update
131 fi 136 fi
132} 137}
133 138
139# pkg_prerm
134EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_postinst pkg_postrm 140EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.85

  ViewVC Help
Powered by ViewVC 1.1.20