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

Diff of /eclass/gnome2.eclass

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

Revision 1.87 Revision 1.90
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.87 2010/04/26 19:37:25 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.90 2010/12/07 06:20:40 eva 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
16 16
17case "${EAPI:-0}" in 17case "${EAPI:-0}" in
18 0|1) 18 0|1)
19 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm 19 EXPORT_FUNCTIONS src_unpack src_compile src_install pkg_preinst pkg_postinst pkg_postrm
20 ;; 20 ;;
21 *) 21 2|3)
22 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm 22 EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_preinst pkg_postinst pkg_postrm
23 ;; 23 ;;
24 *) die "EAPI=${EAPI} is not supported" ;;
24esac 25esac
25 26
26# Extra configure opts passed to econf 27# Extra configure opts passed to econf
27G2CONF=${G2CONF:-""} 28G2CONF=${G2CONF:-""}
28 29
85gnome2_src_install() { 86gnome2_src_install() {
86 has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" 87 has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}"
87 # if this is not present, scrollkeeper-update may segfault and 88 # if this is not present, scrollkeeper-update may segfault and
88 # create bogus directories in /var/lib/ 89 # create bogus directories in /var/lib/
89 local sk_tmp_dir="/var/lib/scrollkeeper" 90 local sk_tmp_dir="/var/lib/scrollkeeper"
90 dodir "${sk_tmp_dir}" 91 dodir "${sk_tmp_dir}" || die "dodir failed"
91 92
92 # we must delay gconf schema installation due to sandbox 93 # we must delay gconf schema installation due to sandbox
93 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 94 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
94 95
95 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then 96 if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then
101 fi 102 fi
102 103
103 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 104 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
104 105
105 # Manual document installation 106 # Manual document installation
106 [[ -n "${DOCS}" ]] && dodoc ${DOCS} 107 if [[ -n "${DOCS}" ]]; then
108 dodoc ${DOCS} || die "dodoc failed"
109 fi
107 110
108 # Do not keep /var/lib/scrollkeeper because: 111 # Do not keep /var/lib/scrollkeeper because:
109 # 1. The scrollkeeper database is regenerated at pkg_postinst() 112 # 1. The scrollkeeper database is regenerated at pkg_postinst()
110 # 2. ${ED}/var/lib/scrollkeeper contains only indexes for the current pkg 113 # 2. ${ED}/var/lib/scrollkeeper contains only indexes for the current pkg
111 # thus it makes no sense if pkg_postinst ISN'T run for some reason. 114 # thus it makes no sense if pkg_postinst ISN'T run for some reason.
119} 122}
120 123
121gnome2_pkg_preinst() { 124gnome2_pkg_preinst() {
122 gnome2_gconf_savelist 125 gnome2_gconf_savelist
123 gnome2_icon_savelist 126 gnome2_icon_savelist
127 gnome2_schemas_savelist
124} 128}
125 129
126gnome2_pkg_postinst() { 130gnome2_pkg_postinst() {
127 gnome2_gconf_install 131 gnome2_gconf_install
128 fdo-mime_desktop_database_update 132 fdo-mime_desktop_database_update
129 fdo-mime_mime_database_update 133 fdo-mime_mime_database_update
130 gnome2_icon_cache_update 134 gnome2_icon_cache_update
135 gnome2_schemas_update
131 136
132 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then 137 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then
133 gnome2_scrollkeeper_update 138 gnome2_scrollkeeper_update
134 fi 139 fi
135} 140}
140 145
141gnome2_pkg_postrm() { 146gnome2_pkg_postrm() {
142 fdo-mime_desktop_database_update 147 fdo-mime_desktop_database_update
143 fdo-mime_mime_database_update 148 fdo-mime_mime_database_update
144 gnome2_icon_cache_update 149 gnome2_icon_cache_update
150 gnome2_schemas_update --uninstall
145 151
146 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then 152 if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then
147 gnome2_scrollkeeper_update 153 gnome2_scrollkeeper_update
148 fi 154 fi
149} 155}

Legend:
Removed from v.1.87  
changed lines
  Added in v.1.90

  ViewVC Help
Powered by ViewVC 1.1.20