diff options
author | Gilles Dartiguelongue <eva@gentoo.org> | 2012-05-02 21:05:38 +0000 |
---|---|---|
committer | Gilles Dartiguelongue <eva@gentoo.org> | 2012-05-02 21:05:38 +0000 |
commit | 00e557bfbe1414dd9f839b66bb2bdf5a69146fa4 (patch) | |
tree | 1a098779dd0003872240ebea3a613099a42bb82c /eclass/gnome2.eclass | |
parent | Mask media-sound/qsampler for removal. (diff) | |
download | historical-00e557bfbe1414dd9f839b66bb2bdf5a69146fa4.tar.gz historical-00e557bfbe1414dd9f839b66bb2bdf5a69146fa4.tar.bz2 historical-00e557bfbe1414dd9f839b66bb2bdf5a69146fa4.zip |
Rewrite scrollkeeper support as proposed in bug #301311.
Diffstat (limited to 'eclass/gnome2.eclass')
-rw-r--r-- | eclass/gnome2.eclass | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 1dda3dd0f580..6a8288422143 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.104 2011/12/14 19:47:54 tetromino Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.105 2012/05/02 21:05:38 eva Exp $ # @ECLASS: gnome2.eclass # @MAINTAINER: @@ -125,6 +125,11 @@ gnome2_src_configure() { G2CONF="${G2CONF} --disable-maintainer-mode" fi + # Pass --disable-scrollkeeper when possible + if grep -q "disable-scrollkeeper" configure; then + G2CONF="${G2CONF} --disable-scrollkeeper" + fi + # Avoid sandbox violations caused by gnome-vfs (bug #128289 and #345659) addwrite "$(unset HOME; echo ~)/.gnome2" @@ -172,10 +177,9 @@ gnome2_src_install() { # 1. The scrollkeeper database is regenerated at pkg_postinst() # 2. ${ED}/var/lib/scrollkeeper contains only indexes for the current pkg # thus it makes no sense if pkg_postinst ISN'T run for some reason. - if [[ -z "$(find "${D}" -name '*.omf')" ]]; then - export SCROLLKEEPER_UPDATE="0" - fi rm -rf "${ED}${sk_tmp_dir}" + rmdir "${ED}/var/lib" 2>/dev/null + rmdir "${ED}/var" 2>/dev/null # Make sure this one doesn't get in the portage db rm -fr "${ED}/usr/share/applications/mimeinfo.cache" @@ -197,6 +201,7 @@ gnome2_pkg_preinst() { gnome2_gconf_savelist gnome2_icon_savelist gnome2_schemas_savelist + gnome2_scrollkeeper_savelist } # @FUNCTION: gnome2_pkg_postinst @@ -209,10 +214,7 @@ gnome2_pkg_postinst() { fdo-mime_mime_database_update gnome2_icon_cache_update gnome2_schemas_update - - if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then - gnome2_scrollkeeper_update - fi + gnome2_scrollkeeper_update } # @#FUNCTION: gnome2_pkg_prerm @@ -230,8 +232,5 @@ gnome2_pkg_postrm() { fdo-mime_mime_database_update gnome2_icon_cache_update gnome2_schemas_update - - if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then - gnome2_scrollkeeper_update - fi + gnome2_scrollkeeper_update } |