| 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.88 2010/12/07 06:18:55 eva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.89 2010/12/07 06:19:54 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 |
| … | |
… | |
| 85 | gnome2_src_install() { |
85 | gnome2_src_install() { |
| 86 | has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" |
86 | has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}" |
| 87 | # if this is not present, scrollkeeper-update may segfault and |
87 | # if this is not present, scrollkeeper-update may segfault and |
| 88 | # create bogus directories in /var/lib/ |
88 | # create bogus directories in /var/lib/ |
| 89 | local sk_tmp_dir="/var/lib/scrollkeeper" |
89 | local sk_tmp_dir="/var/lib/scrollkeeper" |
| 90 | dodir "${sk_tmp_dir}" |
90 | dodir "${sk_tmp_dir}" || die "dodir failed" |
| 91 | |
91 | |
| 92 | # we must delay gconf schema installation due to sandbox |
92 | # we must delay gconf schema installation due to sandbox |
| 93 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" |
93 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" |
| 94 | |
94 | |
| 95 | if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then |
95 | if [[ -z "${USE_EINSTALL}" || "${USE_EINSTALL}" = "0" ]]; then |
| … | |
… | |
| 101 | fi |
101 | fi |
| 102 | |
102 | |
| 103 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
103 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
| 104 | |
104 | |
| 105 | # Manual document installation |
105 | # Manual document installation |
| 106 | [[ -n "${DOCS}" ]] && dodoc ${DOCS} |
106 | if [[ -n "${DOCS}" ]]; then |
|
|
107 | dodoc ${DOCS} || die "dodoc failed" |
|
|
108 | fi |
| 107 | |
109 | |
| 108 | # Do not keep /var/lib/scrollkeeper because: |
110 | # Do not keep /var/lib/scrollkeeper because: |
| 109 | # 1. The scrollkeeper database is regenerated at pkg_postinst() |
111 | # 1. The scrollkeeper database is regenerated at pkg_postinst() |
| 110 | # 2. ${ED}/var/lib/scrollkeeper contains only indexes for the current pkg |
112 | # 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. |
113 | # thus it makes no sense if pkg_postinst ISN'T run for some reason. |