From: "Gilles Dartiguelongue (eva)" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gnome2-utils.eclass
Date: Tue, 7 Dec 2010 06:23:34 +0000 (UTC) [thread overview]
Message-ID: <20101207062334.4916520054@flycatcher.gentoo.org> (raw)
eva 10/12/07 06:23:34
Modified: gnome2-utils.eclass
Log:
make sure we refer to $ROOT where needed
Revision Changes Path
1.16 eclass/gnome2-utils.eclass
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?r1=1.15&r2=1.16
Index: gnome2-utils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- gnome2-utils.eclass 7 Dec 2010 06:21:59 -0000 1.15
+++ gnome2-utils.eclass 7 Dec 2010 06:23:34 -0000 1.16
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.15 2010/12/07 06:21:59 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.16 2010/12/07 06:23:34 eva Exp $
#
# gnome2-utils.eclass
@@ -14,13 +14,13 @@
# Path to gconftool-2
-: ${GCONFTOOL_BIN:="${ROOT}usr/bin/gconftool-2"}
+: ${GCONFTOOL_BIN:="/usr/bin/gconftool-2"}
# Directory where scrollkeeper-update should do its work
-: ${SCROLLKEEPER_DIR:="${ROOT}var/lib/scrollkeeper"}
+: ${SCROLLKEEPER_DIR:="/var/lib/scrollkeeper"}
# Path to scrollkeeper-update
-: ${SCROLLKEEPER_UPDATE_BIN:="${ROOT}usr/bin/scrollkeeper-update"}
+: ${SCROLLKEEPER_UPDATE_BIN:="/usr/bin/scrollkeeper-update"}
# Path to gtk-update-icon-cache
: ${GTK_UPDATE_ICON_CACHE:="/usr/bin/gtk-update-icon-cache"}
@@ -46,9 +46,10 @@
# Applies any schema files installed by the current ebuild to Gconf's database
# using gconftool-2
gnome2_gconf_install() {
+ local updater="${ROOT}${GCONFTOOL_BIN}"
local F
- if [[ ! -x "${GCONFTOOL_BIN}" ]]; then
+ if [[ ! -x "${updater}" ]]; then
return
fi
@@ -59,14 +60,14 @@
# We are ready to install the GCONF Scheme now
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
- export GCONF_CONFIG_SOURCE="$("${GCONFTOOL_BIN}" --get-default-source | sed "s;:/;:${ROOT};")"
+ export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${ROOT};")"
einfo "Installing GNOME 2 GConf schemas"
for F in ${GNOME2_ECLASS_SCHEMAS}; do
if [[ -e "${ROOT}${F}" ]]; then
# echo "DEBUG::gconf install ${F}"
- "${GCONFTOOL_BIN}" --makefile-install-rule "${ROOT}${F}" 1>/dev/null
+ "${updater}" --makefile-install-rule "${ROOT}${F}" 1>/dev/null
fi
done
@@ -83,9 +84,10 @@
# Removes schema files previously installed by the current ebuild from Gconf's
# database.
gnome2_gconf_uninstall() {
+ local updater="${ROOT}${GCONFTOOL_BIN}"
local F
- if [[ ! -x "${GCONFTOOL_BIN}" ]]; then
+ if [[ ! -x "${updater}" ]]; then
return
fi
@@ -95,14 +97,14 @@
fi
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
- export GCONF_CONFIG_SOURCE="$("${GCONFTOOL_BIN}" --get-default-source | sed "s;:/;:${ROOT};")"
+ export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${ROOT};")"
einfo "Uninstalling GNOME 2 GConf schemas"
for F in ${GNOME2_ECLASS_SCHEMAS}; do
if [[ -e "${ROOT}${F}" ]]; then
# echo "DEBUG::gconf uninstall ${F}"
- "${GCONFTOOL_BIN}" --makefile-uninstall-rule "${ROOT}${F}" 1>/dev/null
+ "${updater}" --makefile-uninstall-rule "${ROOT}${F}" 1>/dev/null
fi
done
@@ -222,9 +224,9 @@
# Updates the global scrollkeeper database.
gnome2_scrollkeeper_update() {
- if [[ -x "${SCROLLKEEPER_UPDATE_BIN}" ]]; then
+ if [[ -x "${ROOT}${SCROLLKEEPER_UPDATE_BIN}" ]]; then
einfo "Updating scrollkeeper database ..."
- "${SCROLLKEEPER_UPDATE_BIN}" -q -p "${SCROLLKEEPER_DIR}"
+ "${ROOT}${SCROLLKEEPER_UPDATE_BIN}" -q -p "${ROOT}${SCROLLKEEPER_DIR}"
fi
}
next reply other threads:[~2010-12-07 6:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 6:23 Gilles Dartiguelongue (eva) [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-04-03 18:12 [gentoo-commits] gentoo-x86 commit in eclass: gnome2-utils.eclass Gilles Dartiguelongue (eva)
2011-01-31 17:03 Gilles Dartiguelongue (eva)
2011-01-20 23:50 Jonathan Callen (abcd)
2011-01-20 23:49 Jonathan Callen (abcd)
2010-12-07 6:26 Gilles Dartiguelongue (eva)
2010-12-07 6:25 Gilles Dartiguelongue (eva)
2010-12-07 6:21 Gilles Dartiguelongue (eva)
2008-10-22 21:04 Gilles Dartiguelongue (eva)
2008-10-19 10:35 Gilles Dartiguelongue (eva)
2008-09-27 9:16 Mart Raudsepp (leio)
2008-03-22 17:30 Remi Cardona (remi)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101207062334.4916520054@flycatcher.gentoo.org \
--to=eva@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox